Exception: Transbank::Webpay::Oneclick::Errors::OneclickError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/transbank/sdk/oneclick/errors/oneclick_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code) ⇒ OneclickError

Returns a new instance of OneclickError.



7
8
9
10
11
# File 'lib/transbank/sdk/oneclick/errors/oneclick_error.rb', line 7

def initialize(message, code)
  @code = code
  @message = message
  super(message)
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



6
7
8
# File 'lib/transbank/sdk/oneclick/errors/oneclick_error.rb', line 6

def code
  @code
end

#messageObject

Returns the value of attribute message.



6
7
8
# File 'lib/transbank/sdk/oneclick/errors/oneclick_error.rb', line 6

def message
  @message
end