Class: PhishDotNetClient::Set
- Inherits:
-
Object
- Object
- PhishDotNetClient::Set
- Defined in:
- lib/phish_dot_net_client/set.rb
Overview
This class represents a set from the ‘setlistdata’ field.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#songs ⇒ Object
readonly
Returns the value of attribute songs.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Set
constructor
private
A new instance of Set.
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.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/phish_dot_net_client/set.rb', line 14 def name @name end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
10 11 12 |
# File 'lib/phish_dot_net_client/set.rb', line 10 def position @position end |
#songs ⇒ Object (readonly)
Returns the value of attribute songs.
18 19 20 |
# File 'lib/phish_dot_net_client/set.rb', line 18 def songs @songs end |