Class: Musicbrainz::TextRepresentation
- Inherits:
-
Object
- Object
- Musicbrainz::TextRepresentation
- Defined in:
- lib/wrapper/resources/text_representation.rb
Instance Attribute Summary collapse
-
#language ⇒ Object
Returns the value of attribute language.
-
#script ⇒ Object
Returns the value of attribute script.
Instance Method Summary collapse
-
#initialize(args) ⇒ TextRepresentation
constructor
A new instance of TextRepresentation.
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
#language ⇒ Object
Returns the value of attribute language.
3 4 5 |
# File 'lib/wrapper/resources/text_representation.rb', line 3 def language @language end |
#script ⇒ Object
Returns the value of attribute script.
3 4 5 |
# File 'lib/wrapper/resources/text_representation.rb', line 3 def script @script end |