Class: Musicbrainz::Alias
- Inherits:
-
Object
- Object
- Musicbrainz::Alias
- Defined in:
- lib/wrapper/resources/alias.rb
Instance Attribute Summary collapse
-
#begin_date ⇒ Object
Returns the value of attribute begin_date.
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#name ⇒ Object
Returns the value of attribute name.
-
#primary ⇒ Object
Returns the value of attribute primary.
-
#sort_name ⇒ Object
Returns the value of attribute sort_name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(args) ⇒ Alias
constructor
A new instance of Alias.
Constructor Details
#initialize(args) ⇒ Alias
Returns a new instance of Alias.
5 6 7 8 9 |
# File 'lib/wrapper/resources/alias.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
#begin_date ⇒ Object
Returns the value of attribute begin_date.
3 4 5 |
# File 'lib/wrapper/resources/alias.rb', line 3 def begin_date @begin_date end |
#end_date ⇒ Object
Returns the value of attribute end_date.
3 4 5 |
# File 'lib/wrapper/resources/alias.rb', line 3 def end_date @end_date end |
#locale ⇒ Object
Returns the value of attribute locale.
3 4 5 |
# File 'lib/wrapper/resources/alias.rb', line 3 def locale @locale end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/wrapper/resources/alias.rb', line 3 def name @name end |
#primary ⇒ Object
Returns the value of attribute primary.
3 4 5 |
# File 'lib/wrapper/resources/alias.rb', line 3 def primary @primary end |
#sort_name ⇒ Object
Returns the value of attribute sort_name.
3 4 5 |
# File 'lib/wrapper/resources/alias.rb', line 3 def sort_name @sort_name end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/wrapper/resources/alias.rb', line 3 def type @type end |