Class: Smartware::Driver::CashAcceptor::Dummy

Inherits:
Object
  • Object
show all
Defined in:
lib/smartware/drivers/cash_acceptor/dummy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Dummy

Returns a new instance of Dummy.



12
13
14
15
16
17
18
19
20
21
# File 'lib/smartware/drivers/cash_acceptor/dummy.rb', line 12

def initialize(config)
  @bill_types = []

  @escrow = nil
  @stacked = nil
  @returned = nil
  @status = nil

  @enabled_types = nil
end

Instance Attribute Details

#bill_typesObject (readonly)

Returns the value of attribute bill_types.



7
8
9
# File 'lib/smartware/drivers/cash_acceptor/dummy.rb', line 7

def bill_types
  @bill_types
end

#enabled_typesObject

Returns the value of attribute enabled_types.



10
11
12
# File 'lib/smartware/drivers/cash_acceptor/dummy.rb', line 10

def enabled_types
  @enabled_types
end

#escrowObject

Returns the value of attribute escrow.



9
10
11
# File 'lib/smartware/drivers/cash_acceptor/dummy.rb', line 9

def escrow
  @escrow
end

#returnedObject

Returns the value of attribute returned.



9
10
11
# File 'lib/smartware/drivers/cash_acceptor/dummy.rb', line 9

def returned
  @returned
end

#stackedObject

Returns the value of attribute stacked.



9
10
11
# File 'lib/smartware/drivers/cash_acceptor/dummy.rb', line 9

def stacked
  @stacked
end

#statusObject

Returns the value of attribute status.



9
10
11
# File 'lib/smartware/drivers/cash_acceptor/dummy.rb', line 9

def status
  @status
end

Instance Method Details

#modelObject



23
24
25
# File 'lib/smartware/drivers/cash_acceptor/dummy.rb', line 23

def model
  "Generic cash acceptor"
end

#versionObject



27
28
29
# File 'lib/smartware/drivers/cash_acceptor/dummy.rb', line 27

def version
  "1.0"
end