Exception: Couchbase::Error::View

Inherits:
Base
  • Object
show all
Defined in:
lib/couchbase/view.rb

Instance Attribute Summary (collapse)

Attributes inherited from Base

#cas, #error, #key, #operation

Instance Method Summary (collapse)

Constructor Details

- (View) initialize(from, reason)

A new instance of View



24
25
26
27
28
# File 'lib/couchbase/view.rb', line 24

def initialize(from, reason)
  @from = from
  @reason = reason
  super("SERVER: #{from}: #{reason}")
end

Instance Attribute Details

- (Object) from (readonly)

Returns the value of attribute from



22
23
24
# File 'lib/couchbase/view.rb', line 22

def from
  @from
end

- (Object) reason (readonly)

Returns the value of attribute reason



22
23
24
# File 'lib/couchbase/view.rb', line 22

def reason
  @reason
end