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.
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
#enabled ⇒ Object
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_name ⇒ Object
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_version ⇒ Object
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_key ⇒ Object
18 19 20 |
# File 'lib/microsoft_kiota_faraday/middleware/user_agent_option.rb', line 18 def get_key 'userAgent' end |