Exception: RubyBox::RubyBoxError
- Inherits:
-
StandardError
- Object
- StandardError
- RubyBox::RubyBoxError
- Defined in:
- lib/ruby-box/exceptions.rb
Direct Known Subclasses
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(error_json) ⇒ RubyBoxError
constructor
A new instance of RubyBoxError.
Constructor Details
#initialize(error_json) ⇒ RubyBoxError
Returns a new instance of RubyBoxError.
3 4 5 |
# File 'lib/ruby-box/exceptions.rb', line 3 def initialize(error_json) @error_json = error_json end |
Instance Method Details
#[](key) ⇒ Object
7 8 9 |
# File 'lib/ruby-box/exceptions.rb', line 7 def [](key) @error_json[key] end |