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