class PhishDotNetClient::Set

This class represents a set from the 'setlistdata' field.

Attributes

name[R]

@!attribute [r] name

@return [String] the name of the set
position[R]

@!attribute [r] position

@return [Integer] the position of the set, indexed starting at 0
songs[R]

@!attribute [r] songs

@return [Array<Song>] the songs belonging to the set

Public Class Methods

new(attrs={}) click to toggle source

@param attrs [Hash] the attributes hash @option attrs [Integer] :position the set position @option attrs [Integer] :name the set name

@api private

# File lib/phish_dot_net_client/set.rb, line 25
def initialize(attrs={})
  @songs = []
  @position = attrs[:position]
  @name = attrs[:name]
end