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.



277
278
279
280
281
282
# File 'lib/seatsio/domain.rb', line 277

def initialize(data)
  super(data)
  @partial_season_keys = data['partialSeasonKeys']
  @events = data['events'] ? Event.create_list(data['events']) : nil
  @for_sale_propagated = data['forSalePropagated']
end

Instance Attribute Details

#eventsObject

Returns the value of attribute events.



275
276
277
# File 'lib/seatsio/domain.rb', line 275

def events
  @events
end

#for_sale_propagatedObject

Returns the value of attribute for_sale_propagated.



275
276
277
# File 'lib/seatsio/domain.rb', line 275

def for_sale_propagated
  @for_sale_propagated
end

#partial_season_keysObject

Returns the value of attribute partial_season_keys.



275
276
277
# File 'lib/seatsio/domain.rb', line 275

def partial_season_keys
  @partial_season_keys
end

Instance Method Details

#is_seasonObject



284
285
286
# File 'lib/seatsio/domain.rb', line 284

def is_season
  true
end