class Gestpay::Result::Base
Attributes
data[R]
Public Class Methods
new(data)
click to toggle source
# File lib/gestpay/result/base.rb, line 7 def initialize(data) @data = data end
Public Instance Methods
error()
click to toggle source
# File lib/gestpay/result/base.rb, line 15 def error "Error #{ error_code }: #{ error_description }" if error_code end
method_missing(method_name, *args)
click to toggle source
Calls superclass method
# File lib/gestpay/result/base.rb, line 19 def method_missing(method_name, *args) data.has_key?(method_name) ? data[method_name] : super end
success?()
click to toggle source
# File lib/gestpay/result/base.rb, line 11 def success? transaction_result == 'OK' end