Exception: Ridley::Errors::InvalidResource
- Inherits:
-
RidleyError
- Object
- StandardError
- RidleyError
- Ridley::Errors::InvalidResource
- Defined in:
- lib/ridley/errors.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ InvalidResource
constructor
A new instance of InvalidResource.
- #message ⇒ Object (also: #to_s)
Constructor Details
#initialize(errors) ⇒ InvalidResource
Returns a new instance of InvalidResource.
18 19 20 |
# File 'lib/ridley/errors.rb', line 18 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
16 17 18 |
# File 'lib/ridley/errors.rb', line 16 def errors @errors end |
Instance Method Details
#message ⇒ Object Also known as: to_s
22 23 24 |
# File 'lib/ridley/errors.rb', line 22 def errors.values end |