Class: NewRelic::Binding::Config
- Inherits:
-
Object
- Object
- NewRelic::Binding::Config
- Defined in:
- lib/newrelic_platform_binding/config.rb
Class Attribute Summary collapse
-
.endpoint ⇒ Object
Returns the value of attribute endpoint.
-
.poll_cycle_period ⇒ Object
Returns the value of attribute poll_cycle_period.
-
.proxy ⇒ Object
Returns the value of attribute proxy.
-
.ssl_host_verification ⇒ Object
Returns the value of attribute ssl_host_verification.
-
.uri ⇒ Object
Returns the value of attribute uri.
Class Method Summary collapse
Class Attribute Details
.endpoint ⇒ Object
Returns the value of attribute endpoint.
35 36 37 |
# File 'lib/newrelic_platform_binding/config.rb', line 35 def endpoint @endpoint end |
.poll_cycle_period ⇒ Object
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 |
.proxy ⇒ Object
Returns the value of attribute proxy.
34 35 36 |
# File 'lib/newrelic_platform_binding/config.rb', line 34 def proxy @proxy end |
.ssl_host_verification ⇒ Object
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 |
.uri ⇒ Object
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
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
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
11 12 13 |
# File 'lib/newrelic_platform_binding/config.rb', line 11 def self.use_ssl? @endpoint.start_with?('https') end |