Class: Datadog::CI::Transport::HTTP::AdapterSettings

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/ci/transport/http.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hostname:, port: nil, ssl: true, timeout_seconds: nil) ⇒ AdapterSettings

Returns a new instance of AdapterSettings.



85
86
87
88
89
90
# File 'lib/datadog/ci/transport/http.rb', line 85

def initialize(hostname:, port: nil, ssl: true, timeout_seconds: nil)
  @hostname = hostname
  @port = port
  @ssl = ssl
  @timeout_seconds = timeout_seconds
end

Instance Attribute Details

#hostnameObject (readonly)

Returns the value of attribute hostname.



83
84
85
# File 'lib/datadog/ci/transport/http.rb', line 83

def hostname
  @hostname
end

#portObject (readonly)

Returns the value of attribute port.



83
84
85
# File 'lib/datadog/ci/transport/http.rb', line 83

def port
  @port
end

#sslObject (readonly)

Returns the value of attribute ssl.



83
84
85
# File 'lib/datadog/ci/transport/http.rb', line 83

def ssl
  @ssl
end

#timeout_secondsObject (readonly)

Returns the value of attribute timeout_seconds.



83
84
85
# File 'lib/datadog/ci/transport/http.rb', line 83

def timeout_seconds
  @timeout_seconds
end

Instance Method Details

#==(other) ⇒ Object



92
93
94
95
# File 'lib/datadog/ci/transport/http.rb', line 92

def ==(other)
  hostname == other.hostname && port == other.port && ssl == other.ssl &&
    timeout_seconds == other.timeout_seconds
end