Class: TicketflyApi::Event

Inherits:
HashBasedStore show all
Defined in:
lib/ticketfly-api/event.rb

Constant Summary collapse

ATTRIBUTE_MAP =
{'id' => :id, 'name' => :name}

Instance Method Summary collapse

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, options = {})
  super(connection, ATTRIBUTE_MAP, {}, options)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class TicketflyApi::HashBasedStore

Instance Method Details

#showObject



8
9
10
11
# File 'lib/ticketfly-api/event.rb', line 8

def show
  self.merge(@connection.event_show(self.id))
  self
end