Methods

DataMapper::Model

Public Instance Methods

adjust(*args) click to toggle source
# File lib/dm-adjust/model.rb, line 4
def adjust(*args)
  all.adjust(*args)
end
adjust!(*args) click to toggle source

increment or decrement attributes on all objects in a resource

@example [Usage]

* People.adjust(:salary => +1000)
* Children.adjust(:allowance => -100)

@param attributes <Hash> A hash of attributes to adjust, and their adjustment @api public

# File lib/dm-adjust/model.rb, line 17
def adjust!(*args)
  all.adjust!(*args)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.