Class: HubLink::Insert
- Inherits:
-
Object
- Object
- HubLink::Insert
- Defined in:
- lib/hub_link/insert.rb
Instance Method Summary collapse
-
#initialize(row:, target:) ⇒ Insert
constructor
A new instance of Insert.
- #run ⇒ Object
Constructor Details
#initialize(row:, target:) ⇒ Insert
Returns a new instance of Insert.
5 6 7 8 |
# File 'lib/hub_link/insert.rb', line 5 def initialize(row:, target:) @row = row @target = target end |
Instance Method Details
#run ⇒ Object
10 11 12 |
# File 'lib/hub_link/insert.rb', line 10 def run record.update! importable_attributes end |