Exception: Couchbase::Error::View
- Defined in:
- lib/couchbase/view.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Attributes inherited from Base
#cas, #error, #inner_exception, #key, #operation, #status
Instance Method Summary collapse
-
#initialize(from, reason, prefix = "SERVER: ") ⇒ View
constructor
A new instance of View.
Methods inherited from Base
Constructor Details
#initialize(from, reason, prefix = "SERVER: ") ⇒ View
Returns a new instance of View.
26 27 28 29 30 |
# File 'lib/couchbase/view.rb', line 26 def initialize(from, reason, prefix = "SERVER: ") @from = from @reason = reason super("#{prefix}#{from}: #{reason}") end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
24 25 26 |
# File 'lib/couchbase/view.rb', line 24 def from @from end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
24 25 26 |
# File 'lib/couchbase/view.rb', line 24 def reason @reason end |