Class: Musicbrainz::TextRepresentation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ TextRepresentation

Returns a new instance of TextRepresentation.



5
6
7
8
9
# File 'lib/wrapper/resources/text_representation.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

#languageObject

Returns the value of attribute language.



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

def language
  @language
end

#scriptObject

Returns the value of attribute script.



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

def script
  @script
end