Class: Seatsio::Domain::Chart
- Inherits:
-
Object
- Object
- Seatsio::Domain::Chart
- Defined in:
- lib/seatsio/domain.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#archived ⇒ Object
readonly
Returns the value of attribute archived.
-
#categories ⇒ Object
readonly
Returns the value of attribute categories.
-
#draft_version_thumbnail_url ⇒ Object
readonly
Returns the value of attribute draft_version_thumbnail_url.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#published_version_thumbnail_url ⇒ Object
readonly
Returns the value of attribute published_version_thumbnail_url.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#venue_type ⇒ Object
readonly
Returns the value of attribute venue_type.
Instance Method Summary collapse
-
#initialize(data) ⇒ Chart
constructor
A new instance of Chart.
Constructor Details
#initialize(data) ⇒ Chart
Returns a new instance of Chart.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/seatsio/domain.rb', line 25 def initialize(data) @id = data['id'] @key = data['key'] @status = data['status'] @name = data['name'] @published_version_thumbnail_url = data['publishedVersionThumbnailUrl'] @draft_version_thumbnail_url = data['draftVersionThumbnailUrl'] @events = Event.create_list(data['events']) if data['events'] = data['tags'] @archived = data['archived'] @venue_type = data['venueType'] @categories = ChartCategories.new(data['categories']) end |
Instance Attribute Details
#archived ⇒ Object (readonly)
Returns the value of attribute archived.
21 22 23 |
# File 'lib/seatsio/domain.rb', line 21 def archived @archived end |
#categories ⇒ Object (readonly)
Returns the value of attribute categories.
21 22 23 |
# File 'lib/seatsio/domain.rb', line 21 def categories @categories end |
#draft_version_thumbnail_url ⇒ Object (readonly)
Returns the value of attribute draft_version_thumbnail_url.
21 22 23 |
# File 'lib/seatsio/domain.rb', line 21 def draft_version_thumbnail_url @draft_version_thumbnail_url end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
21 22 23 |
# File 'lib/seatsio/domain.rb', line 21 def events @events end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
21 22 23 |
# File 'lib/seatsio/domain.rb', line 21 def id @id end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
21 22 23 |
# File 'lib/seatsio/domain.rb', line 21 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
21 22 23 |
# File 'lib/seatsio/domain.rb', line 21 def name @name end |
#published_version_thumbnail_url ⇒ Object (readonly)
Returns the value of attribute published_version_thumbnail_url.
21 22 23 |
# File 'lib/seatsio/domain.rb', line 21 def published_version_thumbnail_url @published_version_thumbnail_url end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
21 22 23 |
# File 'lib/seatsio/domain.rb', line 21 def status @status end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
21 22 23 |
# File 'lib/seatsio/domain.rb', line 21 def end |
#venue_type ⇒ Object (readonly)
Returns the value of attribute venue_type.
21 22 23 |
# File 'lib/seatsio/domain.rb', line 21 def venue_type @venue_type end |