builder/extra/cluster-home/lib/ruby/tungsten/api.rb
def call_default (service, name, api_server=nil )
        api_server ||= @api_server
        api = @api_calls[name].to_hash
        if api.type == :get
            return call(service,name,:get, api_server)
        else
            return call(service,name,:post, api_server)
        end
    end
#
# Calls the API using the method for which the call was registered.
# There is no need to specify :get or :post
#
Calls the API using the method for which the call was registered.
There is no need to specify :get or :post
Calls the API using the method for which the call was registered . There is no need to specify : get or : post
def call_default (service, name, api_server=nil )
        api_server ||= @api_server
        api = @api_calls[name].to_hash
        if api.type == :get
            return call(service,name,:get, api_server)
        else
            return call(service,name,:post, api_server)
        end
    end
def call_default ( service , name , api_server = nil ) api_server ||= @api_server api = @api_calls [ name ] . to_hash if api . type == :get return call ( service , name , :get , api_server ) else return call ( service , name , :post , api_server ) end end
Calls the API using the method for which the call was registered.
Calls the API using the method for which the call was registered .
service
name
api_server