Class: Hecks::Adapters::SQLDatabase::Commands::Create::FindOrCreateReferences

Inherits:
Object
  • Object
show all
Defined in:
lib/commands/create/find_or_create_references.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(head:, attributes:) ⇒ FindOrCreateReferences

Returns a new instance of FindOrCreateReferences.



9
10
11
12
13
# File 'lib/commands/create/find_or_create_references.rb', line 9

def initialize(head:, attributes:)
  @head = head
  @attributes = attributes
  @reference_ids = {}
end

Instance Attribute Details

#reference_idsObject (readonly)

Returns the value of attribute reference_ids.



7
8
9
# File 'lib/commands/create/find_or_create_references.rb', line 7

def reference_ids
  @reference_ids
end

Instance Method Details

#callObject



15
16
17
18
19
# File 'lib/commands/create/find_or_create_references.rb', line 15

def call
  find_or_create_reference
  find_or_create_references
  self
end