Exception: CouchdbException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/leanback.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ CouchdbException

Returns a new instance of CouchdbException.



7
8
9
# File 'lib/leanback.rb', line 7

def initialize(error)
  @error = error.values[0]
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



6
7
8
# File 'lib/leanback.rb', line 6

def error
  @error
end