Class: Ticketfly::Org

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.



6
7
8
# File 'lib/ticketfly.rb', line 6

def id
  @id
end

#jsonObject

Returns the value of attribute json.



6
7
8
# File 'lib/ticketfly.rb', line 6

def json
  @json
end

#nameObject

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