Sha256: 02eb267f35f319f88bbd25e67085cc536c3ccc4b949939b0974318b43b256c35

Contents?: true

Size: 678 Bytes

Versions: 7

Compression:

Stored size: 678 Bytes

Contents

module Songkickr
  # A single artist
  #
  #  {
  #   "uri":"http://www.songkick.com/artists/253846-radiohead",
  #   "displayName":"Radiohead",
  #   "id":253846,
  #   "onTourUntil":"2010-01-01"
  #  }
  #
  # http://www.songkick.com/developer/artist-search
  class Artist
    attr_accessor :uri, :display_name, :id, :on_tour_until, :identifier

    # Accepts a hash of artist attributes.
    def initialize(artist_hash = {})
      @display_name  = artist_hash["displayName"]
      @id            = artist_hash["id"]
      @uri           = artist_hash["uri"]
      @on_tour_until = artist_hash["onTourUntil"]
      @identifier    = artist_hash["identifier"]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
songkickr-0.5.5 lib/songkickr/artist.rb
songkickr-0.5.4 lib/songkickr/artist.rb
songkickr-0.5.3 lib/songkickr/artist.rb
songkickr-0.5.2 lib/songkickr/artist.rb
songkickr-0.5.0 lib/songkickr/artist.rb
songkickr-0.4.1 lib/songkickr/artist.rb
songkickr-0.4.0 lib/songkickr/artist.rb