Sha256: 615fc7f2b88659df14cd42c2f25affc188be5982b3732c3e70fb2124c926952f

Contents?: true

Size: 658 Bytes

Versions: 4

Compression:

Stored size: 658 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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
songkickr-0.3.3 lib/songkickr/artist.rb
songkickr-0.3.2 lib/songkickr/artist.rb
songkickr-0.3.1 lib/songkickr/artist.rb
songkickr-0.3.0 lib/songkickr/artist.rb