Class: Ticketfly::Event
- Inherits:
-
Object
- Object
- Ticketfly::Event
- Defined in:
- lib/ticketfly.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#json ⇒ Object
Returns the value of attribute json.
-
#name ⇒ Object
Returns the value of attribute name.
-
#org ⇒ Object
Returns the value of attribute org.
-
#venue ⇒ Object
Returns the value of attribute venue.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
47 48 49 |
# File 'lib/ticketfly.rb', line 47 def date @date end |
#id ⇒ Object
Returns the value of attribute id.
47 48 49 |
# File 'lib/ticketfly.rb', line 47 def id @id end |
#json ⇒ Object
Returns the value of attribute json.
47 48 49 |
# File 'lib/ticketfly.rb', line 47 def json @json end |
#name ⇒ Object
Returns the value of attribute name.
47 48 49 |
# File 'lib/ticketfly.rb', line 47 def name @name end |
#org ⇒ Object
Returns the value of attribute org.
47 48 49 |
# File 'lib/ticketfly.rb', line 47 def org @org end |
#venue ⇒ Object
Returns the value of attribute venue.
47 48 49 |
# File 'lib/ticketfly.rb', line 47 def venue @venue end |
Class Method Details
.build(json) ⇒ Object
48 49 50 51 52 53 54 55 56 57 |
# File 'lib/ticketfly.rb', line 48 def self.build(json) event = Event.new event.id = json['id'] event.name = json['name'] event.json = json event.venue = Venue.build(json['venue']) event.org = Org.build(json['org']) event.date = json['startDate'] event end |