Exception: Grumlin::AlreadyExistsError
- Inherits:
-
ServerError
- Object
- StandardError
- Error
- StatusError
- ServerSideError
- ServerError
- Grumlin::AlreadyExistsError
- Defined in:
- lib/grumlin.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from StatusError
Instance Method Summary collapse
-
#initialize(status, query) ⇒ AlreadyExistsError
constructor
A new instance of AlreadyExistsError.
Constructor Details
#initialize(status, query) ⇒ AlreadyExistsError
Returns a new instance of AlreadyExistsError.
89 90 91 92 93 |
# File 'lib/grumlin.rb', line 89 def initialize(status, query) super id = status[:message].split(":").last.strip @id = id == "" ? nil : id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
87 88 89 |
# File 'lib/grumlin.rb', line 87 def id @id end |