Module: DataMapper::Model

### Home Classes Methods

### In Files

- lib/dm-adjust/model.rb

### Methods

- #adjust
- #adjust!

### Files

- LICENSE
- README.rdoc

### Class/Module Index

Quicksearch

- DataMapper
- DataMapper::Adapters
- DataMapper::Adapters::DataObjectsAdapterAdjust
- DataMapper::Adapters::DataObjectsAdapterAdjust::SQL
- DataMapper::Adapters::InMemoryAdapterAdjust
- DataMapper::Adapters::YamlAdapterAdjust
- DataMapper::Collection
- DataMapper::Model
- DataMapper::Repository
- DataMapper::Resource

No matching classes.

# 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.