class Couchbase::Operations::DesignDocs::DesignDocAccess
Public Class Methods
new(bucket)
click to toggle source
# File lib/couchbase/operations/design_docs.rb, line 25 def initialize(bucket) @bucket = bucket end
Public Instance Methods
[](name)
click to toggle source
# File lib/couchbase/operations/design_docs.rb, line 29 def [](name) doc = @bucket.client.getDesignDocument(name) Couchbase::DesignDoc.new(@bucket, doc) rescue Java::ComCouchbaseClientProtocolViews::InvalidViewException nil end