Class: Seatsio::Season
Instance Attribute Summary collapse
-
#events ⇒ Object
Returns the value of attribute events.
-
#partial_season_keys ⇒ Object
Returns the value of attribute partial_season_keys.
Attributes inherited from Event
#categories, #channels, #chart_key, #created_on, #date, #for_sale_config, #id, #is_event_in_season, #is_in_the_past, #is_partial_season, #is_top_level_season, #key, #name, #object_categories, #partial_season_keys_for_event, #supports_best_available, #table_booking_config, #top_level_season_key, #updated_on
Instance Method Summary collapse
-
#initialize(data) ⇒ Season
constructor
A new instance of Season.
- #is_season ⇒ Object
Methods inherited from Event
Constructor Details
#initialize(data) ⇒ Season
Returns a new instance of Season.
251 252 253 254 255 |
# File 'lib/seatsio/domain.rb', line 251 def initialize(data) super(data) @partial_season_keys = data['partialSeasonKeys'] @events = data['events'] ? Event.create_list(data['events']) : nil end |
Instance Attribute Details
#events ⇒ Object
Returns the value of attribute events.
249 250 251 |
# File 'lib/seatsio/domain.rb', line 249 def events @events end |
#partial_season_keys ⇒ Object
Returns the value of attribute partial_season_keys.
249 250 251 |
# File 'lib/seatsio/domain.rb', line 249 def partial_season_keys @partial_season_keys end |
Instance Method Details
#is_season ⇒ Object
257 258 259 |
# File 'lib/seatsio/domain.rb', line 257 def is_season true end |