Module: LedgerSync::Ledgers::Client

Extended by:
SharedClassMethods
Defined in:
lib/ledger_sync/ledgers/client.rb

Defined Under Namespace

Modules: Mixin, SharedClassMethods

Class Method Summary collapse

Methods included from SharedClassMethods

base_operations_module_for

Class Method Details

.operation_class_for(method:, resource_class:) ⇒ Object



139
140
141
142
# File 'lib/ledger_sync/ledgers/client.rb', line 139

def self.operation_class_for(method:, resource_class:)
  base_operations_module_for(resource_class: resource_class)
    .const_get(LedgerSync::Util::StringHelpers.camelcase(method.to_s))
end