Class: Smartware::Interface::CashAcceptor::BillType

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#countryObject (readonly)

Returns the value of attribute country.



24
25
26
# File 'lib/smartware/interfaces/cash_acceptor.rb', line 24

def country
  @country
end

#valueObject (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_sObject



31
32
33
# File 'lib/smartware/interfaces/cash_acceptor.rb', line 31

def to_s
  "#{@country}:#{@value}"
end