Class: Ticketmaster::Venue

Inherits:
Result
  • Object
show all
Defined in:
lib/ticketmaster/results/venue.rb

Instance Attribute Summary

Attributes inherited from Result

#data, #request

Instance Method Summary collapse

Methods inherited from Result

array, create, #initialize, search

Constructor Details

This class inherits a constructor from Ticketmaster::Result

Instance Method Details

#addressObject



11
12
13
# File 'lib/ticketmaster/results/venue.rb', line 11

def address
  data['address']
end

#cityObject



19
20
21
# File 'lib/ticketmaster/results/venue.rb', line 19

def city
  data['city']['name']
end

#countryObject



23
24
25
# File 'lib/ticketmaster/results/venue.rb', line 23

def country
  data['country']['name']
end

#country_codeObject



27
28
29
# File 'lib/ticketmaster/results/venue.rb', line 27

def country_code
  data['country']['countryCode']
end

#idObject



3
4
5
# File 'lib/ticketmaster/results/venue.rb', line 3

def id
  data['id']
end

#locationObject



31
32
33
# File 'lib/ticketmaster/results/venue.rb', line 31

def location
  data['location']
end

#nameObject



7
8
9
# File 'lib/ticketmaster/results/venue.rb', line 7

def name
  data['name']
end

#postal_codeObject



39
40
41
# File 'lib/ticketmaster/results/venue.rb', line 39

def postal_code
  data['postalCode']
end

#reloadObject



47
48
49
50
# File 'lib/ticketmaster/results/venue.rb', line 47

def reload
  data = request.client.get_venue(id).data
  self
end

#stateObject



15
16
17
# File 'lib/ticketmaster/results/venue.rb', line 15

def state
  data['state']
end

#timezoneObject



35
36
37
# File 'lib/ticketmaster/results/venue.rb', line 35

def timezone
  data['timezone']
end

#urlObject



43
44
45
# File 'lib/ticketmaster/results/venue.rb', line 43

def url
  data['url']
end