Exception: Payrex::Errors::BaseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/errors/base_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorsObject (readonly)

Returns the value of attribute errors.



4
5
6
# File 'lib/errors/base_error.rb', line 4

def errors
  @errors
end