Exception: Grumlin::StatusError
Direct Known Subclasses
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, query) ⇒ StatusError
constructor
A new instance of StatusError.
Constructor Details
#initialize(status, query) ⇒ StatusError
Returns a new instance of StatusError.
69 70 71 72 73 |
# File 'lib/grumlin.rb', line 69 def initialize(status, query) super(status[:message]) @status = status @query = query end |
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
67 68 69 |
# File 'lib/grumlin.rb', line 67 def query @query end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
67 68 69 |
# File 'lib/grumlin.rb', line 67 def status @status end |