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.



12
13
14
15
16
# File 'lib/microsoft_kiota_faraday/middleware/user_agent_option.rb', line 12

def initialize
  @enabled = true
  @product_name = 'kiota-ruby'
  @product_version = MicrosoftKiotaFaraday::VERSION
end

Instance Attribute Details

#enabledObject

Returns the value of attribute enabled.



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

def enabled
  @enabled
end

#product_nameObject

Returns the value of attribute product_name.



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

def product_name
  @product_name
end

#product_versionObject

Returns the value of attribute product_version.



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

def product_version
  @product_version
end

Instance Method Details

#get_keyObject



18
19
20
# File 'lib/microsoft_kiota_faraday/middleware/user_agent_option.rb', line 18

def get_key
  'userAgent'
end