Module: LedgerSync::Ledgers::Mixins::InferSerializerMixin::ClassMethods
- Defined in:
- lib/ledger_sync/ledgers/mixins/infer_serializer_mixin.rb
Instance Method Summary collapse
- #inferred_deserializer_class ⇒ Object
- #inferred_deserializer_class_name ⇒ Object
- #inferred_searcher_deserializer_class ⇒ Object
- #inferred_searcher_deserializer_class_name ⇒ Object
- #inferred_serializer_class ⇒ Object
- #inferred_serializer_class_name ⇒ Object
Instance Method Details
#inferred_deserializer_class ⇒ Object
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_name ⇒ Object
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_class ⇒ Object
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_name ⇒ Object
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_class ⇒ Object
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_name ⇒ Object
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 |