Class: Paymongo::ErrorResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gateway, errors) ⇒ ErrorResult

Returns a new instance of ErrorResult.



5
6
7
8
# File 'lib/paymongo/error_result.rb', line 5

def initialize(gateway, errors)
  @gateway = gateway
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



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

def errors
  @errors
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/paymongo/error_result.rb', line 10

def success?
  false
end