Module: LedgerSync::ResourceAttribute::Reference::One::Mixin::ClassMethods

Defined in:
lib/ledger_sync/resource_attribute/reference/one.rb

Instance Method Summary collapse

Instance Method Details

#references_one(name, to:) ⇒ Object



16
17
18
19
20
# File 'lib/ledger_sync/resource_attribute/reference/one.rb', line 16

def references_one(name, to:)
  resource_attribute = ResourceAttribute::Reference::One.new(name: name, to: to)
  resource_attributes.add resource_attribute
  _define_attribute_methods(name)
end