Class: Purse
- Inherits:
-
Object
- Object
- Purse
- Defined in:
- lib/items.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
Instance Method Summary collapse
-
#initialize(amount) ⇒ Purse
constructor
A new instance of Purse.
Constructor Details
#initialize(amount) ⇒ Purse
Returns a new instance of Purse.
39 40 41 |
# File 'lib/items.rb', line 39 def initialize(amount) @amount = amount end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
37 38 39 |
# File 'lib/items.rb', line 37 def amount @amount end |