Class: Paymongo::ErrorResult
- Inherits:
-
Object
- Object
- Paymongo::ErrorResult
- Defined in:
- lib/paymongo/error_result.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(gateway, errors) ⇒ ErrorResult
constructor
A new instance of ErrorResult.
- #success? ⇒ Boolean
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
#errors ⇒ Object (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
10 11 12 |
# File 'lib/paymongo/error_result.rb', line 10 def success? false end |