Class: Strutta::Flow
Overview
Flow belongs to a Strutta::Games object Other Instance methods found in Strutta::APIObject
Instance Attribute Summary
Attributes inherited from APIObject
Instance Method Summary collapse
-
#delete ⇒ Hash
DELETE request for Flow (no ID required).
-
#get ⇒ Hash
GET request for Flow (no ID required).
-
#initialize(id = nil, game) ⇒ Strutta::Flow
constructor
Initializes the Strutta::Flow object.
Methods inherited from APIObject
Constructor Details
#initialize(id = nil, game) ⇒ Strutta::Flow
Initializes the Strutta::Flow object
9 10 11 12 13 |
# File 'lib/strutta-api/flow.rb', line 9 def initialize(id = nil, game) @id = id @game = game @root_path = 'flow' end |
Instance Method Details
#delete ⇒ Hash
DELETE request for Flow (no ID required)
26 27 28 29 |
# File 'lib/strutta-api/flow.rb', line 26 def delete @game.verify_no_id(@id) @game.delete(@root_path) end |
#get ⇒ Hash
GET request for Flow (no ID required)
18 19 20 21 |
# File 'lib/strutta-api/flow.rb', line 18 def get @game.verify_no_id(@id) @game.get({}, @root_path) end |