Class: Seatsio::Events

Inherits:
Object
  • Object
show all
Defined in:
lib/seatsio/domain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Events

Returns a new instance of Events.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def initialize(data)
  @events = Event.create_list(data['events']) if data['events']
end

Instance Attribute Details

#eventsObject

Returns the value of attribute events.



263
264
265
# File 'lib/seatsio/domain.rb', line 263

def events
  @events
end