Module: RedboothRuby::Operations::Index::ClassMethods

Defined in:
lib/redbooth-ruby/operations/index.rb

Instance Method Summary collapse

Instance Method Details

#index(attributes = {}) ⇒ Array

Retrieves all available objects from the Copy API

Parameters:

  • options (Hash)

    Options to pass to the API

Returns:

  • (Array)

    The available objects



9
10
11
12
13
# File 'lib/redbooth-ruby/operations/index.rb', line 9

def index(attributes = {})
  session = attributes.delete(:session)
  response = RedboothRuby.request(:get, nil, api_collection_url , attributes, options_for_request(session: session))
  collection_from attributes, response, session
end