Sha256: 5ae3c74c2fe0b9be255f6e2a8c50d9000ff6a6e5d91013674c8e261faa140a9d

Contents?: true

Size: 770 Bytes

Versions: 1

Compression:

Stored size: 770 Bytes

Contents

module Songkickr
  class Venue
    attr_accessor :capacity, :display_name, :description, :id, :lat, :lng, :phone, :street, :uri, :website, :zip

    def initialize(venue_hash)
      @capacity     = venue_hash["capacity"]
      @display_name = venue_hash["displayName"]
      @description  = venue_hash["description"]
      @id           = venue_hash["id"]
      @lat          = venue_hash["lat"]
      @lng          = venue_hash["lng"]
      @metro_area   = Songkickr::MetroArea.new venue_hash["metroArea"] if venue_hash.include?("metroArea")
      @phone        = venue_hash["phone"]
      @street       = venue_hash["street"]
      @uri          = venue_hash["uri"]
      @website      = venue_hash["website"]
      @zip          = venue_hash["zip"]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
songkickr-0.4.0 lib/songkickr/venue.rb