Exception: TransferTo::Error
- Inherits:
-
StandardError
- Object
- StandardError
- TransferTo::Error
- Defined in:
- lib/transfer_to/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.
4 5 6 7 |
# File 'lib/transfer_to/errors.rb', line 4 def initialize(code, = nil) @code = code.to_i super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/transfer_to/errors.rb', line 3 def code @code end |