Class: Ticketfly::Org
- Inherits:
-
Object
- Object
- Ticketfly::Org
- 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.
6 7 8 |
# File 'lib/ticketfly.rb', line 6 def id @id end |
#json ⇒ Object
Returns the value of attribute json.
6 7 8 |
# File 'lib/ticketfly.rb', line 6 def json @json end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/ticketfly.rb', line 6 def name @name end |
Class Method Details
.build(json) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/ticketfly.rb', line 7 def self.build(json) org = Org.new org.id = json['id'] org.name = json['name'] org.json = json org end |