Module: MongoMapper::Plugins::Modifiers::InstanceMethods
- Defined in:
- lib/mongo_mapper/plugins/modifiers.rb
Instance Method Summary collapse
- #decrement(hash) ⇒ Object
- #increment(hash) ⇒ Object
- #pull(hash) ⇒ Object
- #push(hash) ⇒ Object
- #push_uniq(hash) ⇒ Object
- #set(hash) ⇒ Object
Instance Method Details
#decrement(hash) ⇒ Object
65 66 67 |
# File 'lib/mongo_mapper/plugins/modifiers.rb', line 65 def decrement(hash) self.class.decrement({:_id => id}, hash) end |
#increment(hash) ⇒ Object
61 62 63 |
# File 'lib/mongo_mapper/plugins/modifiers.rb', line 61 def increment(hash) self.class.increment({:_id => id}, hash) end |
#pull(hash) ⇒ Object
77 78 79 |
# File 'lib/mongo_mapper/plugins/modifiers.rb', line 77 def pull(hash) self.class.pull({:_id => id}, hash) end |
#push(hash) ⇒ Object
73 74 75 |
# File 'lib/mongo_mapper/plugins/modifiers.rb', line 73 def push(hash) self.class.push({:_id => id}, hash) end |
#push_uniq(hash) ⇒ Object
81 82 83 |
# File 'lib/mongo_mapper/plugins/modifiers.rb', line 81 def push_uniq(hash) self.class.push_uniq({:_id => id}, hash) end |
#set(hash) ⇒ Object
69 70 71 |
# File 'lib/mongo_mapper/plugins/modifiers.rb', line 69 def set(hash) self.class.set({:_id => id}, hash) end |