Class: TicketflyPlus::Objects::Venue
- Inherits:
-
Object
- Object
- TicketflyPlus::Objects::Venue
- Defined in:
- lib/ticketfly_plus/objects.rb
Instance Attribute Summary collapse
-
#address1 ⇒ Object
Returns the value of attribute address1.
-
#address2 ⇒ Object
Returns the value of attribute address2.
-
#blurb ⇒ Object
Returns the value of attribute blurb.
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#id ⇒ Object
Returns the value of attribute id.
-
#image ⇒ Object
Returns the value of attribute image.
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#lng ⇒ Object
Returns the value of attribute lng.
-
#metroCode ⇒ Object
Returns the value of attribute metroCode.
-
#name ⇒ Object
Returns the value of attribute name.
-
#postalCode ⇒ Object
Returns the value of attribute postalCode.
-
#stateProvince ⇒ Object
Returns the value of attribute stateProvince.
-
#timeZone ⇒ Object
Returns the value of attribute timeZone.
-
#url ⇒ Object
Returns the value of attribute url.
-
#urlFacebook ⇒ Object
Returns the value of attribute urlFacebook.
-
#urlTwitter ⇒ Object
Returns the value of attribute urlTwitter.
Instance Method Summary collapse
-
#initialize(venue) ⇒ Venue
constructor
A new instance of Venue.
Constructor Details
#initialize(venue) ⇒ Venue
Returns a new instance of Venue.
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'lib/ticketfly_plus/objects.rb', line 150 def initialize(venue) @address1 = venue['address1'] @address2 = venue['address2'] @blurb = venue['blurb'] @city = venue['city'] @country = venue['country'] @id = venue['id'] @image = !venue['image'].nil? ? Objects::Image.new(venue['image']) : venue['image'] @lat = venue['lat'] @lng = venue['lng'] @metroCode = venue['metrocode'] @name = venue['name'] @postalCode = venue['postalCode'] @stateProvince = venue['stateProvince'] @timeZone = venue['timeZone'] @url = venue['url'] @urlFacebook = venue['urlFacebook'] @urlTwitter = venue['urlTwitter'] end |
Instance Attribute Details
#address1 ⇒ Object
Returns the value of attribute address1.
132 133 134 |
# File 'lib/ticketfly_plus/objects.rb', line 132 def address1 @address1 end |
#address2 ⇒ Object
Returns the value of attribute address2.
133 134 135 |
# File 'lib/ticketfly_plus/objects.rb', line 133 def address2 @address2 end |
#blurb ⇒ Object
Returns the value of attribute blurb.
134 135 136 |
# File 'lib/ticketfly_plus/objects.rb', line 134 def blurb @blurb end |
#city ⇒ Object
Returns the value of attribute city.
135 136 137 |
# File 'lib/ticketfly_plus/objects.rb', line 135 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
136 137 138 |
# File 'lib/ticketfly_plus/objects.rb', line 136 def country @country end |
#id ⇒ Object
Returns the value of attribute id.
137 138 139 |
# File 'lib/ticketfly_plus/objects.rb', line 137 def id @id end |
#image ⇒ Object
Returns the value of attribute image.
138 139 140 |
# File 'lib/ticketfly_plus/objects.rb', line 138 def image @image end |
#lat ⇒ Object
Returns the value of attribute lat.
139 140 141 |
# File 'lib/ticketfly_plus/objects.rb', line 139 def lat @lat end |
#lng ⇒ Object
Returns the value of attribute lng.
140 141 142 |
# File 'lib/ticketfly_plus/objects.rb', line 140 def lng @lng end |
#metroCode ⇒ Object
Returns the value of attribute metroCode.
141 142 143 |
# File 'lib/ticketfly_plus/objects.rb', line 141 def metroCode @metroCode end |
#name ⇒ Object
Returns the value of attribute name.
142 143 144 |
# File 'lib/ticketfly_plus/objects.rb', line 142 def name @name end |
#postalCode ⇒ Object
Returns the value of attribute postalCode.
143 144 145 |
# File 'lib/ticketfly_plus/objects.rb', line 143 def postalCode @postalCode end |
#stateProvince ⇒ Object
Returns the value of attribute stateProvince.
144 145 146 |
# File 'lib/ticketfly_plus/objects.rb', line 144 def stateProvince @stateProvince end |
#timeZone ⇒ Object
Returns the value of attribute timeZone.
145 146 147 |
# File 'lib/ticketfly_plus/objects.rb', line 145 def timeZone @timeZone end |
#url ⇒ Object
Returns the value of attribute url.
146 147 148 |
# File 'lib/ticketfly_plus/objects.rb', line 146 def url @url end |
#urlFacebook ⇒ Object
Returns the value of attribute urlFacebook.
147 148 149 |
# File 'lib/ticketfly_plus/objects.rb', line 147 def urlFacebook @urlFacebook end |
#urlTwitter ⇒ Object
Returns the value of attribute urlTwitter.
148 149 150 |
# File 'lib/ticketfly_plus/objects.rb', line 148 def urlTwitter @urlTwitter end |