Class: Brocktail::API::Acts
- Includes:
- Behavior::Crud
- Defined in:
- lib/brocktail/api/acts.rb
Instance Attribute Summary collapse
-
#event_id ⇒ Object
readonly
Returns the value of attribute event_id.
Attributes inherited from Base
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(credentials, event_id) ⇒ Acts
constructor
A new instance of Acts.
Methods included from Behavior::Crud
Methods inherited from Base
Constructor Details
#initialize(credentials, event_id) ⇒ Acts
10 11 12 13 |
# File 'lib/brocktail/api/acts.rb', line 10 def initialize(credentials, event_id) @event_id = event_id super(credentials) end |
Instance Attribute Details
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id.
8 9 10 |
# File 'lib/brocktail/api/acts.rb', line 8 def event_id @event_id end |
Instance Method Details
#all ⇒ Object
15 16 17 18 |
# File 'lib/brocktail/api/acts.rb', line 15 def all response = request(:get, credentials, "#{Brocktail::Event.api_path}/#{@event_id}/#{api_model.api_path}") api_model.parse(response.body) end |