Sha256: a437c2ccd5ed1591e85eb372612e190bb34b829f63d0ea9bf3e452f64355e79b
Contents?: true
Size: 957 Bytes
Versions: 5
Compression:
Stored size: 957 Bytes
Contents
module Songkickr # A single performance by an artist. # { # "artist": { # "uri": "http://www.songkick.com/artists/288696-vampire-weekend", # "displayName": "Vampire Weekend", # "id": 288696, # "identifier": [{"mbid": "af37c51c-0790-4a29-b995-456f98a6b8c9"}] # } # "displayName": "Vampire Weekend", # "billingIndex": 1, # "id": 5380281, # "billing": "headline" # } class Performance attr_accessor :artist, :display_name, :id, :billing_index, :billing # Takes a the hash of the performance. Parses out an Artist object for the artist. def initialize(performance_hash) @artist = Songkickr::Artist.new performance_hash["artist"] @display_name = performance_hash["displayName"] @id = performance_hash["id"] @billing_index = performance_hash['billingIndex'] @billing = performance_hash['billing'] end end end
Version data entries
5 entries across 5 versions & 1 rubygems