Class: Vvm::State::SoldOut

Inherits:
Base
  • Object
show all
Defined in:
lib/vvm/state/sold_out.rb

Instance Method Summary collapse

Methods inherited from Base

#dispense, #initialize

Constructor Details

This class inherits a constructor from Vvm::State::Base

Instance Method Details

#insert(_coin) ⇒ Object

Raises:



6
7
8
# File 'lib/vvm/state/sold_out.rb', line 6

def insert(_coin)
  raise MachineIsEmpty
end

#pick(_product_name) ⇒ Object

Raises:



10
11
12
# File 'lib/vvm/state/sold_out.rb', line 10

def pick(_product_name)
  raise MachineIsEmpty
end