Class: HubLink::Insert

Inherits:
Object
  • Object
show all
Defined in:
lib/hub_link/insert.rb

Instance Method Summary collapse

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

#runObject



10
11
12
# File 'lib/hub_link/insert.rb', line 10

def run
  record.update! importable_attributes
end