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.
13 14 15 |
# File 'lib/ridley/errors.rb', line 13 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
11 12 13 |
# File 'lib/ridley/errors.rb', line 11 def errors @errors end |
Instance Method Details
#message ⇒ Object Also known as: to_s
17 18 19 |
# File 'lib/ridley/errors.rb', line 17 def errors..join(', ') end |