Class: MicrosoftKiotaAbstractions::ApiClientBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/microsoft_kiota_abstractions/api_client_builder.rb

Class Method Summary collapse

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