Class: ProxyAPI::Features

Inherits:
Resource show all
Defined in:
lib/proxy_api/features.rb

Instance Attribute Summary

Attributes inherited from Resource

#url

Instance Method Summary collapse

Methods included from Foreman::TelemetryHelper

#telemetry_duration_histogram, #telemetry_increment_counter, #telemetry_observe_histogram, #telemetry_set_gauge

Constructor Details

#initialize(args) ⇒ Features

Returns a new instance of Features.


3
4
5
6
# File 'lib/proxy_api/features.rb', line 3

def initialize(args)
  @url = args[:url] + "/features"
  super args
end

Instance Method Details

#featuresObject


8
9
10
11
12
# File 'lib/proxy_api/features.rb', line 8

def features
  parse get
rescue => e
  raise ProxyException.new(url, e, N_("Unable to detect features"))
end