Class: TicketflyApi::Event
- Inherits:
-
HashBasedStore
- Object
- HashBasedStore
- TicketflyApi::Event
- Defined in:
- lib/ticketfly-api/event.rb
Constant Summary collapse
- ATTRIBUTE_MAP =
{'id' => :id, 'name' => :name}
Instance Method Summary collapse
-
#initialize(connection, options = {}) ⇒ Event
constructor
A new instance of Event.
- #show ⇒ Object
Methods inherited from HashBasedStore
#[], #id, #merge, #method_missing, #to_s
Constructor Details
#initialize(connection, options = {}) ⇒ Event
Returns a new instance of Event.
4 5 6 |
# File 'lib/ticketfly-api/event.rb', line 4 def initialize(connection, = {}) super(connection, ATTRIBUTE_MAP, {}, ) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class TicketflyApi::HashBasedStore
Instance Method Details
#show ⇒ Object
8 9 10 11 |
# File 'lib/ticketfly-api/event.rb', line 8 def show self.merge(@connection.event_show(self.id)) self end |