Class: Seatsio::Domain::Chart

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

Direct Known Subclasses

ChartDraft

Instance Attribute Summary collapse

Instance Method Summary collapse

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']
  @tags = data['tags']
  @archived = data['archived']
  @venue_type = data['venueType']
  @categories = ChartCategories.new(data['categories'])

end

Instance Attribute Details

#archivedObject (readonly)

Returns the value of attribute archived.



21
22
23
# File 'lib/seatsio/domain.rb', line 21

def archived
  @archived
end

#categoriesObject (readonly)

Returns the value of attribute categories.



21
22
23
# File 'lib/seatsio/domain.rb', line 21

def categories
  @categories
end

#draft_version_thumbnail_urlObject (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

#eventsObject (readonly)

Returns the value of attribute events.



21
22
23
# File 'lib/seatsio/domain.rb', line 21

def events
  @events
end

#idObject (readonly)

Returns the value of attribute id.



21
22
23
# File 'lib/seatsio/domain.rb', line 21

def id
  @id
end

#keyObject (readonly)

Returns the value of attribute key.



21
22
23
# File 'lib/seatsio/domain.rb', line 21

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



21
22
23
# File 'lib/seatsio/domain.rb', line 21

def name
  @name
end

#published_version_thumbnail_urlObject (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

#statusObject (readonly)

Returns the value of attribute status.



21
22
23
# File 'lib/seatsio/domain.rb', line 21

def status
  @status
end

#tagsObject (readonly)

Returns the value of attribute tags.



21
22
23
# File 'lib/seatsio/domain.rb', line 21

def tags
  @tags
end

#venue_typeObject (readonly)

Returns the value of attribute venue_type.



21
22
23
# File 'lib/seatsio/domain.rb', line 21

def venue_type
  @venue_type
end