Class: Homophone::Musician
- Inherits:
-
Object
- Object
- Homophone::Musician
- Defined in:
- lib/homophone/service.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#spotify_id ⇒ Object
readonly
Returns the value of attribute spotify_id.
Instance Method Summary collapse
-
#initialize(service, blob) ⇒ Musician
constructor
A new instance of Musician.
- #related_artists ⇒ Object
Constructor Details
#initialize(service, blob) ⇒ Musician
Returns a new instance of Musician.
62 63 64 65 66 |
# File 'lib/homophone/service.rb', line 62 def initialize(service, blob) @service = service @spotify_id = blob['id'] @name = blob['name'] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
60 61 62 |
# File 'lib/homophone/service.rb', line 60 def name @name end |
#spotify_id ⇒ Object (readonly)
Returns the value of attribute spotify_id.
60 61 62 |
# File 'lib/homophone/service.rb', line 60 def spotify_id @spotify_id end |