Method: Infold::Association#initialize

Defined in:
lib/infold/property/association.rb

#initialize(field, kind:, table:, field_group: [], name: nil, **attrs) ⇒ Association

Returns a new instance of Association.



35
36
37
38
39
40
41
42
# File 'lib/infold/property/association.rb', line 35

def initialize(field, kind:, table:, field_group: [], name: nil, **attrs)
  @field = field
  @kind = kind
  @table = table
  @field_group = field_group
  @name = name || field.name
  super(**attrs)
end