Module: Access::Savable
Overview
Mixin for classes representing records
Instance Attribute Summary collapse
-
#access ⇒ Object
The Access instance that manages this records base.
-
#base ⇒ Object
The “Base” instance that manages this record.
Instance Method Summary collapse
-
#delete ⇒ Object
delete this record from the database.
-
#save ⇒ Object
save changes to this record.
Instance Attribute Details
#access ⇒ Object
The Access instance that manages this records base
14 15 16 |
# File 'lib/access/savable.rb', line 14 def access @access end |
#base ⇒ Object
The “Base” instance that manages this record
17 18 19 |
# File 'lib/access/savable.rb', line 17 def base @base end |
Instance Method Details
#delete ⇒ Object
delete this record from the database
25 26 27 |
# File 'lib/access/savable.rb', line 25 def delete base.delete(id()) end |
#save ⇒ Object
save changes to this record
20 21 22 |
# File 'lib/access/savable.rb', line 20 def save base.save(id()) end |