Class: Songkickr::Venue
- Inherits:
-
Object
- Object
- Songkickr::Venue
- Defined in:
- lib/songkickr/venue.rb
Instance Attribute Summary (collapse)
-
- (Object) display_name
Returns the value of attribute display_name.
-
- (Object) id
Returns the value of attribute id.
-
- (Object) lat
Returns the value of attribute lat.
-
- (Object) lng
Returns the value of attribute lng.
Instance Method Summary (collapse)
-
- (Venue) initialize(venue_hash)
constructor
A new instance of Venue.
Constructor Details
- (Venue) initialize(venue_hash)
A new instance of Venue
5 6 7 8 9 10 |
# File 'lib/songkickr/venue.rb', line 5 def initialize(venue_hash) @display_name = venue_hash["displayName"] @id = venue_hash["id"] @lat = venue_hash["lat"] @lng = venue_hash["lng"] end |
Instance Attribute Details
- (Object) display_name
Returns the value of attribute display_name
3 4 5 |
# File 'lib/songkickr/venue.rb', line 3 def display_name @display_name end |
- (Object) id
Returns the value of attribute id
3 4 5 |
# File 'lib/songkickr/venue.rb', line 3 def id @id end |
- (Object) lat
Returns the value of attribute lat
3 4 5 |
# File 'lib/songkickr/venue.rb', line 3 def lat @lat end |
- (Object) lng
Returns the value of attribute lng
3 4 5 |
# File 'lib/songkickr/venue.rb', line 3 def lng @lng end |