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


14
15
16
# File 'lib/ridley/errors.rb', line 14

def initialize(errors)
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors


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

def errors
  @errors
end

Instance Method Details

#messageObject Also known as: to_s


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

def message
  errors.values
end