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 16 17 |
# File 'lib/ledger_sync/ledgers/mixins/infer_serializer_mixin.rb', line 11 def inferred_deserializer_class @inferred_deserializer_class ||= begin inferred_config.base_module.const_get( inferred_deserializer_class_name ) end end |
#inferred_deserializer_class_name ⇒ Object
19 20 21 22 23 |
# File 'lib/ledger_sync/ledgers/mixins/infer_serializer_mixin.rb', line 19 def inferred_deserializer_class_name @inferred_deserializer_class_name ||= begin "#{inferred_resource_class}::Deserializer" end end |
#inferred_searcher_deserializer_class ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/ledger_sync/ledgers/mixins/infer_serializer_mixin.rb', line 25 def inferred_searcher_deserializer_class @inferred_searcher_deserializer_class ||= begin inferred_config.base_module.const_get( inferred_searcher_deserializer_class_name ) end end |
#inferred_searcher_deserializer_class_name ⇒ Object
33 34 35 36 37 |
# File 'lib/ledger_sync/ledgers/mixins/infer_serializer_mixin.rb', line 33 def inferred_searcher_deserializer_class_name @inferred_searcher_deserializer_class_name ||= begin "#{inferred_resource_class}::SearcherDeserializer" end end |
#inferred_serializer_class ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/ledger_sync/ledgers/mixins/infer_serializer_mixin.rb', line 39 def inferred_serializer_class @inferred_serializer_class ||= begin inferred_config.base_module.const_get( inferred_serializer_class_name ) end end |
#inferred_serializer_class_name ⇒ Object
47 48 49 50 51 |
# File 'lib/ledger_sync/ledgers/mixins/infer_serializer_mixin.rb', line 47 def inferred_serializer_class_name @inferred_serializer_class_name ||= begin "#{inferred_resource_class}::Serializer" end end |