Class: Smartware::Driver::CashAcceptor::Dummy
- Inherits:
-
Object
- Object
- Smartware::Driver::CashAcceptor::Dummy
- Defined in:
- lib/smartware/drivers/cash_acceptor/dummy.rb
Instance Attribute Summary collapse
-
#bill_types ⇒ Object
readonly
Returns the value of attribute bill_types.
-
#enabled_types ⇒ Object
Returns the value of attribute enabled_types.
-
#escrow ⇒ Object
Returns the value of attribute escrow.
-
#returned ⇒ Object
Returns the value of attribute returned.
-
#stacked ⇒ Object
Returns the value of attribute stacked.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(config) ⇒ Dummy
constructor
A new instance of Dummy.
- #model ⇒ Object
- #version ⇒ Object
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_types ⇒ Object (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_types ⇒ Object
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 |
#escrow ⇒ Object
Returns the value of attribute escrow.
9 10 11 |
# File 'lib/smartware/drivers/cash_acceptor/dummy.rb', line 9 def escrow @escrow end |
#returned ⇒ Object
Returns the value of attribute returned.
9 10 11 |
# File 'lib/smartware/drivers/cash_acceptor/dummy.rb', line 9 def returned @returned end |
#stacked ⇒ Object
Returns the value of attribute stacked.
9 10 11 |
# File 'lib/smartware/drivers/cash_acceptor/dummy.rb', line 9 def stacked @stacked end |
#status ⇒ Object
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
#model ⇒ Object
23 24 25 |
# File 'lib/smartware/drivers/cash_acceptor/dummy.rb', line 23 def model "Generic cash acceptor" end |
#version ⇒ Object
27 28 29 |
# File 'lib/smartware/drivers/cash_acceptor/dummy.rb', line 27 def version "1.0" end |