Class: NewRelic::Binding::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/newrelic_platform_binding/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.endpointObject

Returns the value of attribute endpoint.



35
36
37
# File 'lib/newrelic_platform_binding/config.rb', line 35

def endpoint
  @endpoint
end

.poll_cycle_periodObject

Returns the value of attribute poll_cycle_period.



34
35
36
# File 'lib/newrelic_platform_binding/config.rb', line 34

def poll_cycle_period
  @poll_cycle_period
end

.proxyObject

Returns the value of attribute proxy.



34
35
36
# File 'lib/newrelic_platform_binding/config.rb', line 34

def proxy
  @proxy
end

.ssl_host_verificationObject

Returns the value of attribute ssl_host_verification.



34
35
36
# File 'lib/newrelic_platform_binding/config.rb', line 34

def ssl_host_verification
  @ssl_host_verification
end

.uriObject

Returns the value of attribute uri.



34
35
36
# File 'lib/newrelic_platform_binding/config.rb', line 34

def uri
  @uri
end

Class Method Details

.skip_ssl_host_verification?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/newrelic_platform_binding/config.rb', line 19

def self.skip_ssl_host_verification?
  !@ssl_host_verification
end

.ssl_supported?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/newrelic_platform_binding/config.rb', line 15

def self.ssl_supported?
  !(!defined?(RUBY_ENGINE) || (RUBY_ENGINE == 'ruby' && RUBY_VERSION < '1.9.0'))
end

.use_ssl?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/newrelic_platform_binding/config.rb', line 11

def self.use_ssl?
  @endpoint.start_with?('https')
end