Class: Ticketfly::Headliner

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id.



36
37
38
# File 'lib/ticketfly.rb', line 36

def id
  @id
end

#jsonObject

Returns the value of attribute json.



36
37
38
# File 'lib/ticketfly.rb', line 36

def json
  @json
end

#nameObject

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