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
#channels, #chart_key, #created_on, #for_sale_config, #id, #key, #social_distancing_ruleset_key, #supports_best_available, #table_booking_config, #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.
174 175 176 177 178 |
# File 'lib/seatsio/domain.rb', line 174 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.
172 173 174 |
# File 'lib/seatsio/domain.rb', line 172 def events @events end |
#partial_season_keys ⇒ Object
Returns the value of attribute partial_season_keys.
172 173 174 |
# File 'lib/seatsio/domain.rb', line 172 def partial_season_keys @partial_season_keys end |
Instance Method Details
#is_season ⇒ Object
180 181 182 |
# File 'lib/seatsio/domain.rb', line 180 def is_season true end |