Exception: T2Airtime::Error
- Inherits:
-
StandardError
- Object
- StandardError
- T2Airtime::Error
- Defined in:
- lib/t2_airtime/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, message = nil) ⇒ Error
Returns a new instance of Error
80 81 82 83 |
# File 'lib/t2_airtime/errors.rb', line 80 def initialize(code, =nil) @code = code.to_i super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code
78 79 80 |
# File 'lib/t2_airtime/errors.rb', line 78 def code @code end |