Module: LedgerSync::Ledgers::Mixins::InferValidationContractMixin::ClassMethods

Defined in:
lib/ledger_sync/ledgers/mixins/infer_validation_contract_mixin.rb

Instance Method Summary collapse

Instance Method Details

#inferred_validation_contract_classObject



8
9
10
11
12
# File 'lib/ledger_sync/ledgers/mixins/infer_validation_contract_mixin.rb', line 8

def inferred_validation_contract_class
  @inferred_validation_contract_class ||= const_get(
    inferred_validation_contract_class_name
  )
end

#inferred_validation_contract_class_nameObject



14
15
16
# File 'lib/ledger_sync/ledgers/mixins/infer_validation_contract_mixin.rb', line 14

def inferred_validation_contract_class_name
  @inferred_validation_contract_class_name ||= "#{name}::Contract"
end