Class: OvirtSDK4::NetworkFiltersService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#list(opts = {}) ⇒ Array<NetworkFilter>
Retrieves the representations of the network filters.
-
#network_filter_service(id) ⇒ NetworkFilterService
Locates the
network_filter
service. -
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#list(opts = {}) ⇒ Array<NetworkFilter>
Retrieves the representations of the network filters.
The order of the returned list of network filters isn’t guaranteed.
15064 15065 15066 |
# File 'lib/ovirtsdk4/services.rb', line 15064 def list(opts = {}) internal_get(LIST, opts) end |
#network_filter_service(id) ⇒ NetworkFilterService
Locates the network_filter
service.
15075 15076 15077 |
# File 'lib/ovirtsdk4/services.rb', line 15075 def network_filter_service(id) NetworkFilterService.new(self, id) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 |
# File 'lib/ovirtsdk4/services.rb', line 15086 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return network_filter_service(path) end return network_filter_service(path[0..(index - 1)]).service(path[(index +1)..-1]) end |