Exception: GoodGuide::Gibbon::QueryError
- Inherits:
-
RuntimeError
- Object
- StandardError
- GibbonError
- RuntimeError
- GoodGuide::Gibbon::QueryError
- 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) ⇒ QueryError
constructor
A new instance of QueryError.
- #to_js(gibbon) ⇒ Object
Constructor Details
#initialize(message) ⇒ QueryError
Returns a new instance of QueryError.
214 215 216 |
# File 'lib/goodguide/gibbon.rb', line 214 def initialize() @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
213 214 215 |
# File 'lib/goodguide/gibbon.rb', line 213 def @message end |
Instance Method Details
#as_json ⇒ Object
222 223 224 225 226 227 228 |
# File 'lib/goodguide/gibbon.rb', line 222 def as_json(*) { 'status' => 'failure', 'message' => , 'annotations' => annotations } end |
#to_js(gibbon) ⇒ Object
218 219 220 |
# File 'lib/goodguide/gibbon.rb', line 218 def to_js(gibbon) gibbon['Failure'].(@message) end |