Class: Hecks::Adapters::SQLDatabase::Commands::Create::FindOrCreateReferences
- Inherits:
-
Object
- Object
- Hecks::Adapters::SQLDatabase::Commands::Create::FindOrCreateReferences
- Defined in:
- lib/commands/create/find_or_create_references.rb
Instance Attribute Summary collapse
-
#reference_ids ⇒ Object
readonly
Returns the value of attribute reference_ids.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(head:, attributes:) ⇒ FindOrCreateReferences
constructor
A new instance of FindOrCreateReferences.
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_ids ⇒ Object (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
#call ⇒ Object
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 |