Class: Musicbrainz::Tag
- Inherits:
-
Object
- Object
- Musicbrainz::Tag
- Defined in:
- lib/wrapper/resources/tag.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(args) ⇒ Tag
constructor
A new instance of Tag.
Constructor Details
#initialize(args) ⇒ Tag
Returns a new instance of Tag.
5 6 7 8 9 |
# File 'lib/wrapper/resources/tag.rb', line 5 def initialize args args.each do |k, v| instance_variable_set("@#{k.gsub('-', '_')}", v) unless v.nil? end end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
3 4 5 |
# File 'lib/wrapper/resources/tag.rb', line 3 def count @count end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/wrapper/resources/tag.rb', line 3 def name @name end |