Class: Nestling::Artist
Constant Summary collapse
- METHOD_PREFIX =
"artist/"
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(name, client) ⇒ Artist
constructor
A new instance of Artist.
Methods inherited from Base
Constructor Details
#initialize(name, client) ⇒ Artist
Returns a new instance of Artist.
30 31 32 33 |
# File 'lib/nestling/artist.rb', line 30 def initialize(name, client) name.kind_of?(::Hash) ? @id = name[:id] : @name = name super(client) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/nestling/artist.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/nestling/artist.rb', line 3 def name @name end |