Class: Musicbrainz::LabelInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/wrapper/resources/label_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_numberObject

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

#labelObject

Returns the value of attribute label.



3
4
5
# File 'lib/wrapper/resources/label_info.rb', line 3

def label
  @label
end