Exception: Payrex::Errors::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- Payrex::Errors::BaseError
- Defined in:
- lib/errors/base_error.rb
Direct Known Subclasses
AuthenticationInvalidError, RequestInvalidError, ResourceNotFoundError
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(response) ⇒ BaseError
constructor
A new instance of BaseError.
Constructor Details
#initialize(response) ⇒ BaseError
Returns a new instance of BaseError.
6 7 8 |
# File 'lib/errors/base_error.rb', line 6 def initialize(response) @errors = response["errors"].map { |error| PayrexError.new(error) } end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
4 5 6 |
# File 'lib/errors/base_error.rb', line 4 def errors @errors end |