class ShafClient::ProblemJson
Public Instance Methods
detail()
click to toggle source
# File lib/shaf_client/problem_json.rb, line 26 def detail attribute(:detail) end
instance()
click to toggle source
# File lib/shaf_client/problem_json.rb, line 30 def instance attribute(:instance) end
status()
click to toggle source
# File lib/shaf_client/problem_json.rb, line 22 def status attribute(:status) { http_status } end
title()
click to toggle source
# File lib/shaf_client/problem_json.rb, line 14 def title attribute(:title) do next unless type == 'about:blank' StatusCode[status] if (400..599).include? status.to_i end end
to_h()
click to toggle source
# File lib/shaf_client/problem_json.rb, line 34 def to_h attributes end
type()
click to toggle source
# File lib/shaf_client/problem_json.rb, line 10 def type attribute(:type) { 'about:blank' } end