Class: Inventory::CLI
- Inherits:
-
Thor
- Object
- Thor
- Inventory::CLI
- Defined in:
- lib/inventory/cli.rb
Instance Method Summary collapse
- #add(amount, item) ⇒ Object
- #invoice(name, *args) ⇒ Object
- #remove(amount, item) ⇒ Object
- #show ⇒ Object
Instance Method Details
#add(amount, item) ⇒ Object
7 8 9 10 |
# File 'lib/inventory/cli.rb', line 7 def add(amount, item) System::Inventory.add(amount.to_i, item) puts System::Inventory.print end |
#invoice(name, *args) ⇒ Object
24 25 26 27 |
# File 'lib/inventory/cli.rb', line 24 def invoice(name, *args) System::Inventory.invoice(name, args) puts System::Inventory.print end |