Exception: Ridley::Errors::InvalidResource

Inherits:
RidleyError
  • Object
show all
Defined in:
lib/ridley/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorsObject (readonly)

Returns the value of attribute errors.



11
12
13
# File 'lib/ridley/errors.rb', line 11

def errors
  @errors
end

Instance Method Details

#messageObject Also known as: to_s



17
18
19
# File 'lib/ridley/errors.rb', line 17

def message
  errors.full_messages.join(', ')
end