Class: Nestling::Artist

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

Constant Summary collapse

METHOD_PREFIX =
"artist/"

Instance Attribute Summary collapse

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

define_api_methods

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

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/nestling/artist.rb', line 3

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/nestling/artist.rb', line 3

def name
  @name
end