Class: Assumption::Song

Inherits:
Object
  • Object
show all
Defined in:
lib/assumption/song.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#artistObject (readonly)

Returns the value of attribute artist.



3
4
5
# File 'lib/assumption/song.rb', line 3

def artist
  @artist
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/assumption/song.rb', line 3

def name
  @name
end

#positionObject (readonly)

Returns the value of attribute position.



3
4
5
# File 'lib/assumption/song.rb', line 3

def position
  @position
end