class Jahuty::Snippet::Exception::NotOk

Attributes

problem[R]

Public Class Methods

new(problem) click to toggle source
# File lib/jahuty/snippet/exception/not_ok.rb, line 7
def initialize(problem)
  @problem = problem
end

Public Instance Methods

message() click to toggle source
# File lib/jahuty/snippet/exception/not_ok.rb, line 11
def message
  "The API responded with #{@problem.status}, #{@problem.type}: #{@problem.detail}"
end