Class: PhishDotNetClient::Set

Inherits:
Object
  • Object
show all
Defined in:
lib/phish_dot_net_client/set.rb

Overview

This class represents a set from the ‘setlistdata’ field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Set

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Set.

Parameters:

  • attrs (Hash) (defaults to: {})

    the attributes hash

Options Hash (attrs):

  • :position (Integer)

    the set position

  • :name (Integer)

    the set name



25
26
27
28
29
# File 'lib/phish_dot_net_client/set.rb', line 25

def initialize(attrs={})
  @songs = []
  @position = attrs[:position]
  @name = attrs[:name]
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



14
15
16
# File 'lib/phish_dot_net_client/set.rb', line 14

def name
  @name
end

#positionObject (readonly)

Returns the value of attribute position.



10
11
12
# File 'lib/phish_dot_net_client/set.rb', line 10

def position
  @position
end

#songsObject (readonly)

Returns the value of attribute songs.



18
19
20
# File 'lib/phish_dot_net_client/set.rb', line 18

def songs
  @songs
end