Exception: TransferTo::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/transfer_to/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message = nil)
  @code = code.to_i
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/transfer_to/errors.rb', line 3

def code
  @code
end