Method: Strutta::APIObject#all

Defined in:
lib/strutta-api/api_object.rb

#all(params = {}) ⇒ Hash

GET index request (Uses instance vars of child object to generate resource path)

Returns:

  • (Hash)

    Parsed body of the API response

[View source]

12
13
14
15
# File 'lib/strutta-api/api_object.rb', line 12

def all(params = {})
  @game.verify_no_id(@id)
  @game.all(params, "#{@game.id}/#{@root_path}")
end