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.
138 139 140 141 142 143 |
# File 'lib/datadog/ci/transport/http.rb', line 138 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.
136 137 138 |
# File 'lib/datadog/ci/transport/http.rb', line 136 def hostname @hostname end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
136 137 138 |
# File 'lib/datadog/ci/transport/http.rb', line 136 def port @port end |
#ssl ⇒ Object (readonly)
Returns the value of attribute ssl.
136 137 138 |
# File 'lib/datadog/ci/transport/http.rb', line 136 def ssl @ssl end |
#timeout_seconds ⇒ Object (readonly)
Returns the value of attribute timeout_seconds.
136 137 138 |
# File 'lib/datadog/ci/transport/http.rb', line 136 def timeout_seconds @timeout_seconds end |
Instance Method Details
#==(other) ⇒ Object
145 146 147 148 |
# File 'lib/datadog/ci/transport/http.rb', line 145 def ==(other) hostname == other.hostname && port == other.port && ssl == other.ssl && timeout_seconds == other.timeout_seconds end |