class Songkickr::Artist

A single artist

{
 "uri":"http://www.songkick.com/artists/253846-radiohead",
 "displayName":"Radiohead",
 "id":253846,
 "onTourUntil":"2010-01-01"
}

www.songkick.com/developer/artist-search

Attributes

display_name[RW]
id[RW]
on_tour_until[RW]
uri[RW]

Public Class Methods

new(artist_hash = {}) click to toggle source

Accepts a hash of artist attributes.

# File lib/songkickr/artist.rb, line 16
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