Class: Songkickr::Venue

Inherits:
Object
  • Object
show all
Defined in:
lib/songkickr/venue.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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