Class: Datadog::CI::Transport::HTTP::AdapterSettings
- Inherits:
-
Object
- Object
- Datadog::CI::Transport::HTTP::AdapterSettings
- Defined in:
- lib/datadog/ci/transport/http.rb
Instance Attribute Summary collapse
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#ssl ⇒ Object
readonly
Returns the value of attribute ssl.
-
#timeout_seconds ⇒ Object
readonly
Returns the value of attribute timeout_seconds.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(hostname:, port: nil, ssl: true, timeout_seconds: nil) ⇒ AdapterSettings
constructor
A new instance of AdapterSettings.
Constructor Details
#initialize(hostname:, port: nil, ssl: true, timeout_seconds: nil) ⇒ AdapterSettings
Returns a new instance of AdapterSettings.
105 106 107 108 109 110 |
# File 'lib/datadog/ci/transport/http.rb', line 105 def initialize(hostname:, port: nil, ssl: true, timeout_seconds: nil) @hostname = hostname @port = port @ssl = ssl @timeout_seconds = timeout_seconds end |
Instance Attribute Details
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
103 104 105 |
# File 'lib/datadog/ci/transport/http.rb', line 103 def hostname @hostname end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
103 104 105 |
# File 'lib/datadog/ci/transport/http.rb', line 103 def port @port end |
#ssl ⇒ Object (readonly)
Returns the value of attribute ssl.
103 104 105 |
# File 'lib/datadog/ci/transport/http.rb', line 103 def ssl @ssl end |
#timeout_seconds ⇒ Object (readonly)
Returns the value of attribute timeout_seconds.
103 104 105 |
# File 'lib/datadog/ci/transport/http.rb', line 103 def timeout_seconds @timeout_seconds end |
Instance Method Details
#==(other) ⇒ Object
112 113 114 115 |
# File 'lib/datadog/ci/transport/http.rb', line 112 def ==(other) hostname == other.hostname && port == other.port && ssl == other.ssl && timeout_seconds == other.timeout_seconds end |