Class: Ticketfly::Headliner
- Inherits:
-
Object
- Object
- Ticketfly::Headliner
- Defined in:
- lib/ticketfly.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#json ⇒ Object
Returns the value of attribute json.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
36 37 38 |
# File 'lib/ticketfly.rb', line 36 def id @id end |
#json ⇒ Object
Returns the value of attribute json.
36 37 38 |
# File 'lib/ticketfly.rb', line 36 def json @json end |
#name ⇒ Object
Returns the value of attribute name.
36 37 38 |
# File 'lib/ticketfly.rb', line 36 def name @name end |
Class Method Details
.build(json) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/ticketfly.rb', line 37 def self.build(json) headliner = Headliner.new headliner.id = json['id'] headliner.name = json['name'] headliner.json = json headliner end |