Module: LedgerSync::Ledgers::Mixins::InferSerializerMixin::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#inferred_deserializer_classObject



11
12
13
14
15
# File 'lib/ledger_sync/ledgers/mixins/infer_serializer_mixin.rb', line 11

def inferred_deserializer_class
  @inferred_deserializer_class ||= inferred_config.base_module.const_get(
    inferred_deserializer_class_name
  )
end

#inferred_deserializer_class_nameObject



17
18
19
# File 'lib/ledger_sync/ledgers/mixins/infer_serializer_mixin.rb', line 17

def inferred_deserializer_class_name
  @inferred_deserializer_class_name ||= "#{inferred_resource_class}::Deserializer"
end

#inferred_searcher_deserializer_classObject



21
22
23
24
25
# File 'lib/ledger_sync/ledgers/mixins/infer_serializer_mixin.rb', line 21

def inferred_searcher_deserializer_class
  @inferred_searcher_deserializer_class ||= inferred_config.base_module.const_get(
    inferred_searcher_deserializer_class_name
  )
end

#inferred_searcher_deserializer_class_nameObject



27
28
29
# File 'lib/ledger_sync/ledgers/mixins/infer_serializer_mixin.rb', line 27

def inferred_searcher_deserializer_class_name
  @inferred_searcher_deserializer_class_name ||= "#{inferred_resource_class}::SearcherDeserializer"
end

#inferred_serializer_classObject



31
32
33
34
35
# File 'lib/ledger_sync/ledgers/mixins/infer_serializer_mixin.rb', line 31

def inferred_serializer_class
  @inferred_serializer_class ||= inferred_config.base_module.const_get(
    inferred_serializer_class_name
  )
end

#inferred_serializer_class_nameObject



37
38
39
# File 'lib/ledger_sync/ledgers/mixins/infer_serializer_mixin.rb', line 37

def inferred_serializer_class_name
  @inferred_serializer_class_name ||= "#{inferred_resource_class}::Serializer"
end