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