class Snitcher::API::ResourceInvalidError
ResourceInvalidError
is raised when updating a resource and there are errors with the update.
Public Instance Methods
errors()
click to toggle source
# File lib/snitcher/api/error.rb, line 64 def errors @metadata.fetch("validations", []).each_with_object({}) do |tuple, memo| memo[tuple["attribute"]] = tuple["message"] end end