Module: LedgerSync::Ledgers::Operation

Defined in:
lib/ledger_sync/ledgers/operation.rb

Defined Under Namespace

Modules: Mixin

Class Method Summary collapse

Class Method Details

.class_from(client:, method:, object:) ⇒ Object



174
175
176
177
178
179
180
# File 'lib/ledger_sync/ledgers/operation.rb', line 174

def self.class_from(client:, method:, object:)
  client.base_module.const_get(
    LedgerSync::Util::StringHelpers.camelcase(object)
  )::Operations.const_get(
    LedgerSync::Util::StringHelpers.camelcase(method)
  )
end