Class: Hecks::Adapters::SQLDatabase::Commands::Update
- Inherits:
-
Object
- Object
- Hecks::Adapters::SQLDatabase::Commands::Update
- Defined in:
- lib/commands/update.rb,
lib/commands/update/update_values.rb,
lib/commands/update/create_new_value.rb,
lib/commands/update/delete_references.rb,
lib/commands/update/link_to_references.rb
Defined Under Namespace
Classes: CreateNewValue, DeleteReferences, LinkToReferences, UpdateValues
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(attributes:, head:, id:) ⇒ Update
constructor
A new instance of Update.
Constructor Details
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
11 12 13 |
# File 'lib/commands/update.rb', line 11 def id @id end |
Instance Method Details
#call ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/commands/update.rb', line 20 def call DB.transaction do update_references fetch_record update_record end self end |