Class: Seatsio::Events
- Inherits:
-
Object
- Object
- Seatsio::Events
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#events ⇒ Object
Returns the value of attribute events.
Instance Method Summary collapse
-
#initialize(data) ⇒ Events
constructor
A new instance of Events.
Constructor Details
#initialize(data) ⇒ Events
Returns a new instance of Events.
231 232 233 |
# File 'lib/seatsio/domain.rb', line 231 def initialize(data) @events = Event.create_list(data['events']) if data['events'] end |
Instance Attribute Details
#events ⇒ Object
Returns the value of attribute events.
229 230 231 |
# File 'lib/seatsio/domain.rb', line 229 def events @events end |