Exception: Apruve::ValidationError

Inherits:
StandardError show all
Defined in:
lib/apruve/resources/validation_error.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#response

Instance Method Summary collapse

Methods inherited from Error

#body, #error_message

Constructor Details

#initialize(errors) ⇒ ValidationError

Returns a new instance of ValidationError.



4
5
6
# File 'lib/apruve/resources/validation_error.rb', line 4

def initialize(errors)
  @errors = errors
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



3
4
5
# File 'lib/apruve/resources/validation_error.rb', line 3

def errors
  @errors
end

Instance Method Details

#messageObject



8
9
10
# File 'lib/apruve/resources/validation_error.rb', line 8

def message
  @errors.to_s
end