Class: Discogs::Contributor
- Inherits:
-
Object
- Object
- Discogs::Contributor
- Defined in:
- lib/contributor.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#role ⇒ Object
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(name, role) ⇒ Contributor
constructor
A new instance of Contributor.
-
#to_s ⇒ Object
:nodoc:.
Constructor Details
#initialize(name, role) ⇒ Contributor
Returns a new instance of Contributor.
4 5 6 7 |
# File 'lib/contributor.rb', line 4 def initialize(name, role) @name = name @role = role end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/contributor.rb', line 3 def name @name end |
#role ⇒ Object
Returns the value of attribute role.
3 4 5 |
# File 'lib/contributor.rb', line 3 def role @role end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
9 10 11 |
# File 'lib/contributor.rb', line 9 def to_s #:nodoc: "#{name} as #{role}" end |