Class: OvirtSDK4::KatelloErratumService
- Inherits:
-
Service
- Object
- Service
- OvirtSDK4::KatelloErratumService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary (collapse)
-
- (KatelloErratum) get(opts = {})
Returns the representation of the object managed by this service.
-
- (Service) service(path)
Locates the service corresponding to the given path.
-
- (String) to_s
Returns an string representation of this service.
Instance Method Details
- (KatelloErratum) get(opts = {})
Returns the representation of the object managed by this service.
11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 |
# File 'lib/ovirtsdk4/services.rb', line 11930 def get(opts = {}) query = {} request = Request.new(:method => :GET, :path => @path, :query => query) response = @connection.send(request) case response.code when 200 begin reader = XmlReader.new(response.body) return KatelloErratumReader.read_one(reader) ensure reader.close end else check_fault(response) end end |
- (Service) service(path)
Locates the service corresponding to the given path.
11954 11955 11956 11957 11958 11959 |
# File 'lib/ovirtsdk4/services.rb', line 11954 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
- (String) to_s
Returns an string representation of this service.
11966 11967 11968 |
# File 'lib/ovirtsdk4/services.rb', line 11966 def to_s return "#<#{KatelloErratumService}:#{@path}>" end |