Class: TicketflyPlus::Objects::Venue

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#address1Object

Returns the value of attribute address1.



132
133
134
# File 'lib/ticketfly_plus/objects.rb', line 132

def address1
  @address1
end

#address2Object

Returns the value of attribute address2.



133
134
135
# File 'lib/ticketfly_plus/objects.rb', line 133

def address2
  @address2
end

#blurbObject

Returns the value of attribute blurb.



134
135
136
# File 'lib/ticketfly_plus/objects.rb', line 134

def blurb
  @blurb
end

#cityObject

Returns the value of attribute city.



135
136
137
# File 'lib/ticketfly_plus/objects.rb', line 135

def city
  @city
end

#countryObject

Returns the value of attribute country.



136
137
138
# File 'lib/ticketfly_plus/objects.rb', line 136

def country
  @country
end

#idObject

Returns the value of attribute id.



137
138
139
# File 'lib/ticketfly_plus/objects.rb', line 137

def id
  @id
end

#imageObject

Returns the value of attribute image.



138
139
140
# File 'lib/ticketfly_plus/objects.rb', line 138

def image
  @image
end

#latObject

Returns the value of attribute lat.



139
140
141
# File 'lib/ticketfly_plus/objects.rb', line 139

def lat
  @lat
end

#lngObject

Returns the value of attribute lng.



140
141
142
# File 'lib/ticketfly_plus/objects.rb', line 140

def lng
  @lng
end

#metroCodeObject

Returns the value of attribute metroCode.



141
142
143
# File 'lib/ticketfly_plus/objects.rb', line 141

def metroCode
  @metroCode
end

#nameObject

Returns the value of attribute name.



142
143
144
# File 'lib/ticketfly_plus/objects.rb', line 142

def name
  @name
end

#postalCodeObject

Returns the value of attribute postalCode.



143
144
145
# File 'lib/ticketfly_plus/objects.rb', line 143

def postalCode
  @postalCode
end

#stateProvinceObject

Returns the value of attribute stateProvince.



144
145
146
# File 'lib/ticketfly_plus/objects.rb', line 144

def stateProvince
  @stateProvince
end

#timeZoneObject

Returns the value of attribute timeZone.



145
146
147
# File 'lib/ticketfly_plus/objects.rb', line 145

def timeZone
  @timeZone
end

#urlObject

Returns the value of attribute url.



146
147
148
# File 'lib/ticketfly_plus/objects.rb', line 146

def url
  @url
end

#urlFacebookObject

Returns the value of attribute urlFacebook.



147
148
149
# File 'lib/ticketfly_plus/objects.rb', line 147

def urlFacebook
  @urlFacebook
end

#urlTwitterObject

Returns the value of attribute urlTwitter.



148
149
150
# File 'lib/ticketfly_plus/objects.rb', line 148

def urlTwitter
  @urlTwitter
end