Class: Assumption::Song
- Inherits:
-
Object
- Object
- Assumption::Song
- Defined in:
- lib/assumption/song.rb
Instance Attribute Summary collapse
-
#artist ⇒ Object
readonly
Returns the value of attribute artist.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(position, name, artist) ⇒ Song
constructor
A new instance of Song.
Constructor Details
#initialize(position, name, artist) ⇒ Song
Returns a new instance of Song.
4 5 6 7 8 |
# File 'lib/assumption/song.rb', line 4 def initialize (position, name, artist) @position = position @name = name @artist = artist end |
Instance Attribute Details
#artist ⇒ Object (readonly)
Returns the value of attribute artist.
3 4 5 |
# File 'lib/assumption/song.rb', line 3 def artist @artist end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/assumption/song.rb', line 3 def name @name end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
3 4 5 |
# File 'lib/assumption/song.rb', line 3 def position @position end |