Class: Seatsio::Season

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

Instance Attribute Summary collapse

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

Methods inherited from Event

create_list, from_json

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

#eventsObject

Returns the value of attribute events.



249
250
251
# File 'lib/seatsio/domain.rb', line 249

def events
  @events
end

#partial_season_keysObject

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_seasonObject



257
258
259
# File 'lib/seatsio/domain.rb', line 257

def is_season
  true
end