class Cronofy::InvalidRequestError

Public Instance Methods

errors() click to toggle source
# File lib/cronofy/errors.rb, line 49
def errors
  @errors ||= begin
    json = JSON.parse(self.body)
    json.fetch("errors", Hash.new)
  rescue
    Hash.new
  end
end
message() click to toggle source
# File lib/cronofy/errors.rb, line 45
def message
  "#{super} - #{errors.inspect}"
end