Class: Discogs::Format

Inherits:
Object
  • Object
show all
Defined in:
lib/format.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/format.rb', line 3

def name
  @name
end

#qtyObject

Returns the value of attribute qty.



3
4
5
# File 'lib/format.rb', line 3

def qty
  @qty
end

Instance Method Details

#to_sObject

:nodoc:



9
10
11
# File 'lib/format.rb', line 9

def to_s #:nodoc:
  name
end