Class: SWR3::NowPlaying::Artist
- Inherits:
-
Object
- Object
- SWR3::NowPlaying::Artist
- Defined in:
- lib/swr3_now_playing/artist.rb
Instance Attribute Summary collapse
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#name ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, link) ⇒ Artist
constructor
A new instance of Artist.
Constructor Details
#initialize(name, link) ⇒ Artist
Returns a new instance of Artist.
8 9 10 11 |
# File 'lib/swr3_now_playing/artist.rb', line 8 def initialize(name, link) @name = name @link = link end |
Instance Attribute Details
#link ⇒ Object (readonly)
Returns the value of attribute link.
5 6 7 |
# File 'lib/swr3_now_playing/artist.rb', line 5 def link @link end |
#name ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute name.
5 6 7 |
# File 'lib/swr3_now_playing/artist.rb', line 5 def name @name end |