Class: Ticketmaster::Venue
- Inherits:
-
Result
- Object
- Result
- Ticketmaster::Venue
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
Instance Method Details
#address ⇒ Object
11
12
13
|
# File 'lib/ticketmaster/results/venue.rb', line 11
def address
data['address']
end
|
#city ⇒ Object
19
20
21
|
# File 'lib/ticketmaster/results/venue.rb', line 19
def city
data['city']['name']
end
|
#country ⇒ Object
23
24
25
|
# File 'lib/ticketmaster/results/venue.rb', line 23
def country
data['country']['name']
end
|
#country_code ⇒ Object
27
28
29
|
# File 'lib/ticketmaster/results/venue.rb', line 27
def country_code
data['country']['countryCode']
end
|
#id ⇒ Object
3
4
5
|
# File 'lib/ticketmaster/results/venue.rb', line 3
def id
data['id']
end
|
#location ⇒ Object
31
32
33
|
# File 'lib/ticketmaster/results/venue.rb', line 31
def location
data['location']
end
|
#name ⇒ Object
7
8
9
|
# File 'lib/ticketmaster/results/venue.rb', line 7
def name
data['name']
end
|
#postal_code ⇒ Object
39
40
41
|
# File 'lib/ticketmaster/results/venue.rb', line 39
def postal_code
data['postalCode']
end
|
#reload ⇒ Object
47
48
49
50
|
# File 'lib/ticketmaster/results/venue.rb', line 47
def reload
data = request.client.get_venue(id).data
self
end
|
#state ⇒ Object
15
16
17
|
# File 'lib/ticketmaster/results/venue.rb', line 15
def state
data['state']
end
|
#timezone ⇒ Object
35
36
37
|
# File 'lib/ticketmaster/results/venue.rb', line 35
def timezone
data['timezone']
end
|
#url ⇒ Object
43
44
45
|
# File 'lib/ticketmaster/results/venue.rb', line 43
def url
data['url']
end
|