Exception: Grumlin::AlreadyExistsError

Inherits:
ServerError show all
Defined in:
lib/grumlin.rb

Instance Attribute Summary collapse

Attributes inherited from StatusError

#query, #status

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



87
88
89
# File 'lib/grumlin.rb', line 87

def id
  @id
end