Class: SWR3::NowPlaying::Artist

Inherits:
Object
  • Object
show all
Defined in:
lib/swr3_now_playing/artist.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Returns the value of attribute link.



5
6
7
# File 'lib/swr3_now_playing/artist.rb', line 5

def link
  @link
end

#nameObject (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