Sha256: c4414719461d92c0d822d63a568d873a69f6adb75cb51b07f9f0e68a911148c2
Contents?: true
Size: 783 Bytes
Versions: 6
Compression:
Stored size: 783 Bytes
Contents
module Songkickr class Venue attr_accessor :capacity, :display_name, :description, :id, :lat, :lng, :metro_area, :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
6 entries across 6 versions & 1 rubygems