Class: Smartware::Interface::CashAcceptor::BillType
- Inherits:
-
Object
- Object
- Smartware::Interface::CashAcceptor::BillType
- Defined in:
- lib/smartware/interfaces/cash_acceptor.rb
Instance Attribute Summary collapse
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, country) ⇒ BillType
constructor
A new instance of BillType.
- #to_s ⇒ Object
Constructor Details
#initialize(value, country) ⇒ BillType
Returns a new instance of BillType.
26 27 28 29 |
# File 'lib/smartware/interfaces/cash_acceptor.rb', line 26 def initialize(value, country) @value = value @country = country end |
Instance Attribute Details
#country ⇒ Object (readonly)
Returns the value of attribute country.
24 25 26 |
# File 'lib/smartware/interfaces/cash_acceptor.rb', line 24 def country @country end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
23 24 25 |
# File 'lib/smartware/interfaces/cash_acceptor.rb', line 23 def value @value end |
Instance Method Details
#to_s ⇒ Object
31 32 33 |
# File 'lib/smartware/interfaces/cash_acceptor.rb', line 31 def to_s "#{@country}:#{@value}" end |