Exception: Plaza::ResourceInvalid

Inherits:
Error
  • Object
show all
Defined in:
lib/plaza/models/error.rb

Overview

422

Instance Attribute Summary collapse

Attributes inherited from Error

#response

Instance Method Summary collapse

Methods inherited from Error

#status, #to_s

Constructor Details

#initialize(response, message = nil, error_hash = {}) ⇒ ResourceInvalid



27
28
29
30
# File 'lib/plaza/models/error.rb', line 27

def initialize(response, message = nil, error_hash={})
  super(response, message)
  @errors = error_hash
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



26
27
28
# File 'lib/plaza/models/error.rb', line 26

def errors
  @errors
end