class RubyBox::RubyBoxError
Attributes
body[RW]
status[RW]
Public Class Methods
new(error_json, status, body)
click to toggle source
# File lib/ruby-box/exceptions.rb, line 5 def initialize(error_json, status, body) @status = status @body = body @error_json = error_json end
Public Instance Methods
[](key)
click to toggle source
# File lib/ruby-box/exceptions.rb, line 11 def [](key) @error_json[key] end