Class: Musicbrainz::Tag

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#countObject

Returns the value of attribute count.



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

def count
  @count
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end