Sha256: 18d89568db45921225cba60fc48e035f3e27d770a2f155ce1c308cad8a6f0249
Contents?: true
Size: 526 Bytes
Versions: 7
Compression:
Stored size: 526 Bytes
Contents
module Songkickr # "tracking": { # "username": "username", # "id": "artist:231185", # "createdAt": "2010-04-17T17:27:45Z", # "attendance": "i_might_go" # } class Tracking attr_accessor :attendance, :created_at, :id, :username def initialize(tracking_hash) @attendance = tracking_hash["attendance"] if tracking_hash.include? "attendance" @id = tracking_hash["id"] @username = tracking_hash["username"] @created_at = tracking_hash["created_at"] end end end
Version data entries
7 entries across 7 versions & 1 rubygems