Exception: GoodGuide::Gibbon::Failure
- Inherits:
-
RuntimeError
- Object
- StandardError
- RuntimeError
- GoodGuide::Gibbon::Failure
- Defined in:
- lib/goodguide/gibbon.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(message) ⇒ Failure
constructor
A new instance of Failure.
Constructor Details
#initialize(message) ⇒ Failure
Returns a new instance of Failure.
203 204 205 |
# File 'lib/goodguide/gibbon.rb', line 203 def initialize() = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
202 203 204 |
# File 'lib/goodguide/gibbon.rb', line 202 def end |
Instance Method Details
#as_json ⇒ Object
207 208 209 210 211 212 |
# File 'lib/goodguide/gibbon.rb', line 207 def as_json(*) { 'status' => 'failure', 'message' => , } end |