Class: FidorApi::ValidationError

Inherits:
Error
  • Object
show all
Defined in:
lib/fidor_api/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, fields, error_keys) ⇒ ValidationError

Returns a new instance of ValidationError.



22
23
24
25
26
# File 'lib/fidor_api/errors.rb', line 22

def initialize(message, fields, error_keys)
  super(message)
  self.fields     = fields
  self.error_keys = error_keys
end

Instance Attribute Details

#error_keysObject

Returns the value of attribute error_keys.



20
21
22
# File 'lib/fidor_api/errors.rb', line 20

def error_keys
  @error_keys
end

#fieldsObject

Returns the value of attribute fields.



20
21
22
# File 'lib/fidor_api/errors.rb', line 20

def fields
  @fields
end