Class: MicrosoftKiotaAbstractions::ApiClientBuilder
- Inherits:
-
Object
- Object
- MicrosoftKiotaAbstractions::ApiClientBuilder
- Defined in:
- lib/microsoft_kiota_abstractions/api_client_builder.rb
Class Method Summary collapse
- .register_default_deserializer(factory_class) ⇒ Object
- .register_default_serializer(factory_class) ⇒ Object
Class Method Details
.register_default_deserializer(factory_class) ⇒ Object
13 14 15 16 |
# File 'lib/microsoft_kiota_abstractions/api_client_builder.rb', line 13 def self.register_default_deserializer(factory_class) factory = factory_class.new() MicrosoftKiotaAbstractions::ParseNodeFactoryRegistry.default_instance.content_type_associated_factories[factory.get_valid_content_type()] = factory end |
.register_default_serializer(factory_class) ⇒ Object
8 9 10 11 |
# File 'lib/microsoft_kiota_abstractions/api_client_builder.rb', line 8 def self.register_default_serializer(factory_class) factory = factory_class.new() MicrosoftKiotaAbstractions::SerializationWriterFactoryRegistry.default_instance.content_type_associated_factories[factory.get_valid_content_type()] = factory end |