class OrchestrateIo::Collection
Attributes
request[R]
Public Class Methods
new(client, method, &block)
click to toggle source
Usage¶ ↑
io = OrchestrateIo.new
(api_key: “abc”) request = io.collection :delete do
collection 'films' key 'the_godfather'
end
request.perform #=> HTTParty::Response
# File lib/orchestrate.io/collection.rb, line 19 def initialize(client, method, &block) args = { client: client, http_method: method, uri: uri, options: options } @request = OrchestrateIo::Request.new(args, &block) end
Public Instance Methods
perform()
click to toggle source
# File lib/orchestrate.io/collection.rb, line 30 def perform request.perform end
Protected Instance Methods
options()
click to toggle source
# File lib/orchestrate.io/collection.rb, line 40 def options options = {} options[:query] = { force: :force } options end
uri()
click to toggle source
# File lib/orchestrate.io/collection.rb, line 36 def uri "/:version/:collection" end