Module: Couchbase::Model::IdPrefix
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/couchbase/model/id_prefix.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#create_with_id_prefix(options = {}) ⇒ Object
18 19 20 21 |
# File 'lib/couchbase/model/id_prefix.rb', line 18 def create_with_id_prefix( = {}) ensure_has_id create_without_id_prefix() end |
#prefixed_id(id) ⇒ Object
10 11 12 |
# File 'lib/couchbase/model/id_prefix.rb', line 10 def prefixed_id(id) self.class.prefixed_id(id) end |
#unprefixed_id ⇒ Object
14 15 16 |
# File 'lib/couchbase/model/id_prefix.rb', line 14 def unprefixed_id self.class.unprefixed_id(self.id) end |