Class: TicketflyPlus::Objects::Attraction
- Defined in:
- lib/ticketfly_plus/objects.rb
Instance Attribute Summary collapse
-
#embedAudio ⇒ Object
Returns the value of attribute embedAudio.
-
#embedVideo ⇒ Object
Returns the value of attribute embedVideo.
-
#eventDescription ⇒ Object
Returns the value of attribute eventDescription.
-
#id ⇒ Object
Returns the value of attribute id.
-
#image ⇒ Object
Returns the value of attribute image.
-
#isMobileFriendlyBoolean ⇒ Object
Returns the value of attribute isMobileFriendlyBoolean.
-
#name ⇒ Object
Returns the value of attribute name.
-
#startTime ⇒ Object
Returns the value of attribute startTime.
-
#twitterScreenName ⇒ Object
Returns the value of attribute twitterScreenName.
-
#urlFacebook ⇒ Object
Returns the value of attribute urlFacebook.
-
#urlMySpace ⇒ Object
Returns the value of attribute urlMySpace.
-
#urlOfficialWebsite ⇒ Object
Returns the value of attribute urlOfficialWebsite.
-
#urlPurchaseMusic ⇒ Object
Returns the value of attribute urlPurchaseMusic.
-
#urlTwitter ⇒ Object
Returns the value of attribute urlTwitter.
-
#youtubeVideos ⇒ Object
Returns the value of attribute youtubeVideos.
Instance Method Summary collapse
-
#initialize(attraction) ⇒ Attraction
constructor
A new instance of Attraction.
Constructor Details
#initialize(attraction) ⇒ Attraction
Returns a new instance of Attraction.
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/ticketfly_plus/objects.rb', line 200 def initialize(attraction) = attraction['embedAudio'] = attraction['embedVideo'] @eventDescription = attraction['eventDescription'] @id = attraction['id'] @image = !attraction['image'].nil? ? Objects::Image.new(attraction['image']) : attraction['image'] @isMobileFriendlyBoolean = attraction['isMobileFriendlyBoolean'] @name = attraction['name'] @startTime = !attraction['startTime'].nil? ? Time.parse(attraction['startTime']) : attraction['startTime'] @twitterScreenName = attraction['twitterScreenName'] @urlFacebook = attraction['urlFacebook'] @urlMySpace = attraction['urlMySpace'] @urlOfficialWebsite = attraction['urlOfficialWebsite'] @urlPurchaseMusic = attraction['urlPurchaseMusic'] @urlTwitter = attraction['urlTwitter'] @youtubeVideos = !attraction['youtubeVideos'].nil? ? get_param_info(attraction['youtubeVideos'], Objects::YoutubeVideo) : attraction['youtubeVideos'] end |
Instance Attribute Details
#embedAudio ⇒ Object
Returns the value of attribute embedAudio.
184 185 186 |
# File 'lib/ticketfly_plus/objects.rb', line 184 def end |
#embedVideo ⇒ Object
Returns the value of attribute embedVideo.
185 186 187 |
# File 'lib/ticketfly_plus/objects.rb', line 185 def end |
#eventDescription ⇒ Object
Returns the value of attribute eventDescription.
186 187 188 |
# File 'lib/ticketfly_plus/objects.rb', line 186 def eventDescription @eventDescription end |
#id ⇒ Object
Returns the value of attribute id.
187 188 189 |
# File 'lib/ticketfly_plus/objects.rb', line 187 def id @id end |
#image ⇒ Object
Returns the value of attribute image.
188 189 190 |
# File 'lib/ticketfly_plus/objects.rb', line 188 def image @image end |
#isMobileFriendlyBoolean ⇒ Object
Returns the value of attribute isMobileFriendlyBoolean.
189 190 191 |
# File 'lib/ticketfly_plus/objects.rb', line 189 def isMobileFriendlyBoolean @isMobileFriendlyBoolean end |
#name ⇒ Object
Returns the value of attribute name.
190 191 192 |
# File 'lib/ticketfly_plus/objects.rb', line 190 def name @name end |
#startTime ⇒ Object
Returns the value of attribute startTime.
191 192 193 |
# File 'lib/ticketfly_plus/objects.rb', line 191 def startTime @startTime end |
#twitterScreenName ⇒ Object
Returns the value of attribute twitterScreenName.
192 193 194 |
# File 'lib/ticketfly_plus/objects.rb', line 192 def twitterScreenName @twitterScreenName end |
#urlFacebook ⇒ Object
Returns the value of attribute urlFacebook.
193 194 195 |
# File 'lib/ticketfly_plus/objects.rb', line 193 def urlFacebook @urlFacebook end |
#urlMySpace ⇒ Object
Returns the value of attribute urlMySpace.
194 195 196 |
# File 'lib/ticketfly_plus/objects.rb', line 194 def urlMySpace @urlMySpace end |
#urlOfficialWebsite ⇒ Object
Returns the value of attribute urlOfficialWebsite.
195 196 197 |
# File 'lib/ticketfly_plus/objects.rb', line 195 def urlOfficialWebsite @urlOfficialWebsite end |
#urlPurchaseMusic ⇒ Object
Returns the value of attribute urlPurchaseMusic.
196 197 198 |
# File 'lib/ticketfly_plus/objects.rb', line 196 def urlPurchaseMusic @urlPurchaseMusic end |
#urlTwitter ⇒ Object
Returns the value of attribute urlTwitter.
197 198 199 |
# File 'lib/ticketfly_plus/objects.rb', line 197 def urlTwitter @urlTwitter end |
#youtubeVideos ⇒ Object
Returns the value of attribute youtubeVideos.
198 199 200 |
# File 'lib/ticketfly_plus/objects.rb', line 198 def youtubeVideos @youtubeVideos end |