Class: TicketflyPlus::Objects::Attraction

Inherits:
Base
  • Object
show all
Defined in:
lib/ticketfly_plus/objects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
    @embedAudio = attraction['embedAudio']
    @embedVideo = 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

#embedAudioObject

Returns the value of attribute embedAudio.



184
185
186
# File 'lib/ticketfly_plus/objects.rb', line 184

def embedAudio
  @embedAudio
end

#embedVideoObject

Returns the value of attribute embedVideo.



185
186
187
# File 'lib/ticketfly_plus/objects.rb', line 185

def embedVideo
  @embedVideo
end

#eventDescriptionObject

Returns the value of attribute eventDescription.



186
187
188
# File 'lib/ticketfly_plus/objects.rb', line 186

def eventDescription
  @eventDescription
end

#idObject

Returns the value of attribute id.



187
188
189
# File 'lib/ticketfly_plus/objects.rb', line 187

def id
  @id
end

#imageObject

Returns the value of attribute image.



188
189
190
# File 'lib/ticketfly_plus/objects.rb', line 188

def image
  @image
end

#isMobileFriendlyBooleanObject

Returns the value of attribute isMobileFriendlyBoolean.



189
190
191
# File 'lib/ticketfly_plus/objects.rb', line 189

def isMobileFriendlyBoolean
  @isMobileFriendlyBoolean
end

#nameObject

Returns the value of attribute name.



190
191
192
# File 'lib/ticketfly_plus/objects.rb', line 190

def name
  @name
end

#startTimeObject

Returns the value of attribute startTime.



191
192
193
# File 'lib/ticketfly_plus/objects.rb', line 191

def startTime
  @startTime
end

#twitterScreenNameObject

Returns the value of attribute twitterScreenName.



192
193
194
# File 'lib/ticketfly_plus/objects.rb', line 192

def twitterScreenName
  @twitterScreenName
end

#urlFacebookObject

Returns the value of attribute urlFacebook.



193
194
195
# File 'lib/ticketfly_plus/objects.rb', line 193

def urlFacebook
  @urlFacebook
end

#urlMySpaceObject

Returns the value of attribute urlMySpace.



194
195
196
# File 'lib/ticketfly_plus/objects.rb', line 194

def urlMySpace
  @urlMySpace
end

#urlOfficialWebsiteObject

Returns the value of attribute urlOfficialWebsite.



195
196
197
# File 'lib/ticketfly_plus/objects.rb', line 195

def urlOfficialWebsite
  @urlOfficialWebsite
end

#urlPurchaseMusicObject

Returns the value of attribute urlPurchaseMusic.



196
197
198
# File 'lib/ticketfly_plus/objects.rb', line 196

def urlPurchaseMusic
  @urlPurchaseMusic
end

#urlTwitterObject

Returns the value of attribute urlTwitter.



197
198
199
# File 'lib/ticketfly_plus/objects.rb', line 197

def urlTwitter
  @urlTwitter
end

#youtubeVideosObject

Returns the value of attribute youtubeVideos.



198
199
200
# File 'lib/ticketfly_plus/objects.rb', line 198

def youtubeVideos
  @youtubeVideos
end