Sha256: d4621f591dcee84e4737c6951e3b2183afe2feeb9afa649ecd496f717e3c6d99
Contents?: true
Size: 912 Bytes
Versions: 3
Compression:
Stored size: 912 Bytes
Contents
module Strutta # Flow belongs to a Strutta::Games object # Other Instance methods found in Strutta::APIObject class Flow < APIObject # Initializes the Strutta::Flow object # # @param game [Strutta::Games] Master Strutta::Games object # @return [Strutta::Flow] instantiated Strutta::Flow object def initialize(id = nil, game) @id = id @game = game @root_path = 'flow' end # GET request for Flow (no ID required) # # @return [Hash] Parsed body of the API response def get @game.verify_no_id(@id) @game.get({}, @root_path) end # DELETE request for Flow (no ID required) # # @return [Hash] Parsed body of the API response def delete @game.verify_no_id(@id) @game.delete(@root_path) end # Disbled methods alias_method :update, :method_disabled alias_method :all, :method_disabled end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
strutta-api-1.0.3.1 | lib/strutta-api/flow.rb |
strutta-api-1.0.2 | lib/strutta-api/flow.rb |
strutta-api-1.0.1 | lib/strutta-api/flow.rb |