Class: MicrosoftKiotaFaraday::Middleware::UserAgentOption

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::RequestOption
Defined in:
lib/microsoft_kiota_faraday/middleware/user_agent_option.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeUserAgentOption

Returns a new instance of UserAgentOption.



9
10
11
12
13
# File 'lib/microsoft_kiota_faraday/middleware/user_agent_option.rb', line 9

def initialize()
	@enabled = true
	@product_name = "kiota-ruby"
	@product_version = MicrosoftKiotaFaraday::VERSION
end

Instance Attribute Details

#enabledObject

Returns the value of attribute enabled.



8
9
10
# File 'lib/microsoft_kiota_faraday/middleware/user_agent_option.rb', line 8

def enabled
  @enabled
end

#product_nameObject

Returns the value of attribute product_name.



8
9
10
# File 'lib/microsoft_kiota_faraday/middleware/user_agent_option.rb', line 8

def product_name
  @product_name
end

#product_versionObject

Returns the value of attribute product_version.



8
9
10
# File 'lib/microsoft_kiota_faraday/middleware/user_agent_option.rb', line 8

def product_version
  @product_version
end

Instance Method Details

#get_keyObject



15
16
17
# File 'lib/microsoft_kiota_faraday/middleware/user_agent_option.rb', line 15

def get_key()
    "userAgent"
end