Method: Strutta::APIObject#update

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

#update(params = {}) ⇒ Hash

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

Returns:

  • (Hash)

    Parsed body of the API response


39
40
41
42
# File 'lib/strutta-api/api_object.rb', line 39

def update(params = {})
  @game.verify_id(@id, Errors::ROUND_ID_REQUIRED)
  @game.update(params, @root_path)
end