Class: MicrosoftKiotaFaraday::Middleware::UserAgentOption
- Inherits:
-
Object
- Object
- MicrosoftKiotaFaraday::Middleware::UserAgentOption
- Includes:
- MicrosoftKiotaAbstractions::RequestOption
- Defined in:
- lib/microsoft_kiota_faraday/middleware/user_agent_option.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#product_name ⇒ Object
Returns the value of attribute product_name.
-
#product_version ⇒ Object
Returns the value of attribute product_version.
Instance Method Summary collapse
- #get_key ⇒ Object
-
#initialize ⇒ UserAgentOption
constructor
A new instance of UserAgentOption.
Constructor Details
#initialize ⇒ UserAgentOption
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
#enabled ⇒ Object
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_name ⇒ Object
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_version ⇒ Object
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_key ⇒ Object
15 16 17 |
# File 'lib/microsoft_kiota_faraday/middleware/user_agent_option.rb', line 15 def get_key() "userAgent" end |