module Sorcery::Model::Adapters::Couchbase::InstanceMethods

Public Instance Methods

increment(attr) click to toggle source
# File lib/sorcery/model/adapters/couchbase.rb, line 11
def increment(attr)
  self.write_attribute(attr, self.read_attribute(attr).to_i + 1 )
end
update_many_attributes(attrs) click to toggle source
# File lib/sorcery/model/adapters/couchbase.rb, line 15
def update_many_attributes(attrs)
  self.update(attrs)
end
update_single_attribute(name, value) click to toggle source
# File lib/sorcery/model/adapters/couchbase.rb, line 19
def update_single_attribute(name, value)
  update_many_attributes(name => value)
end