Module: MotionModel::ArrayModelAdapter::PrivateClassMethods
- Defined in:
- lib/motion_model/adapters/array_model_adapter.rb
Instance Method Summary collapse
-
#increment_id ⇒ Object
Increments next available id.
-
#next_id ⇒ Object
Returns next available id.
-
#next_id=(value) ⇒ Object
Sets next available id.
Instance Method Details
#increment_id ⇒ Object
Increments next available id
90 91 92 |
# File 'lib/motion_model/adapters/array_model_adapter.rb', line 90 def increment_id #nodoc @_next_id += 1 end |
#next_id ⇒ Object
Returns next available id
80 81 82 |
# File 'lib/motion_model/adapters/array_model_adapter.rb', line 80 def next_id #nodoc @_next_id end |
#next_id=(value) ⇒ Object
Sets next available id
85 86 87 |
# File 'lib/motion_model/adapters/array_model_adapter.rb', line 85 def next_id=(value) #nodoc @_next_id = value end |