Class: Payrex::PayrexError

Inherits:
Object
  • Object
show all
Defined in:
lib/payrex_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ PayrexError

Returns a new instance of PayrexError.



7
8
9
10
11
# File 'lib/payrex_error.rb', line 7

def initialize(error)
  @code = error["code"]
  @detail = error["detail"]
  @parameter = error["parameter"]
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



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

def code
  @code
end

#detailObject (readonly)

Returns the value of attribute detail.



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

def detail
  @detail
end

#parameterObject (readonly)

Returns the value of attribute parameter.



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

def parameter
  @parameter
end