Exception: Smartware::Interface::CardReader::CardReaderError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code) ⇒ CardReaderError

Returns a new instance of CardReaderError.



14
15
16
17
18
# File 'lib/smartware/interfaces/card_reader.rb', line 14

def initialize(message, code)
  super(message)

  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



12
13
14
# File 'lib/smartware/interfaces/card_reader.rb', line 12

def code
  @code
end