Parent

Methods

Songkickr::SetlistItem

A single set list item.

{
  encore: 0
  name: "Anti Matter "
}

Attributes

encore[RW]
name[RW]

Public Class Methods

new(setlist_item_hash) click to toggle source

Takes the set list item hash and parses a boolean out for encore.

# File lib/songkickr/setlist_item.rb, line 11
def initialize(setlist_item_hash)
  @encore = !!setlist_item_hash["encore"]
  @name   = setlist_item_hash["name"]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.