Class: MonkeyMusic::Metadata::Artist
- Inherits:
-
Object
- Object
- MonkeyMusic::Metadata::Artist
- Defined in:
- lib/monkey_music/metadata/artist.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Artist
constructor
A new instance of Artist.
- #serialize ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ Artist
Returns a new instance of Artist.
5 6 7 |
# File 'lib/monkey_music/metadata/artist.rb', line 5 def initialize(args = {}) @name = args[:name] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/monkey_music/metadata/artist.rb', line 3 def name @name end |
Instance Method Details
#serialize ⇒ Object
9 10 11 |
# File 'lib/monkey_music/metadata/artist.rb', line 9 def serialize @name end |