Class: UltraVault::DiskSafeService

Inherits:
SoapService show all
Defined in:
lib/ultravault/soap_service/disk_safe_service.rb

Instance Attribute Summary

Attributes inherited from SoapService

#client

Instance Method Summary collapse

Methods inherited from SoapService

#extract_params, #extract_params_array

Constructor Details

#initializeDiskSafeService

Returns a new instance of DiskSafeService.



5
6
7
# File 'lib/ultravault/soap_service/disk_safe_service.rb', line 5

def initialize
  super(:DiskSafe)
end

Instance Method Details

#all_disk_safesObject



18
19
20
21
22
23
24
25
# File 'lib/ultravault/soap_service/disk_safe_service.rb', line 18

def all_disk_safes
  response_hash = client.request(:getDiskSafes).to_hash
  params = extract_params_array(response_hash,
    :get_disk_safes_response)
  params.collect do |disk_safe|
    UltraVault::DiskSafe.new(disk_safe)
  end
end

#find_disksafes_by_agent_id(agent_id) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/ultravault/soap_service/disk_safe_service.rb', line 9

def find_disksafes_by_agent_id(agent_id)
  response_hash = client.request(:getDiskSafesForAgent, :agent => {:id => agent_id }).to_hash
  params = extract_params_array(response_hash,
    :get_disk_safes_for_agent_response)
  params.collect do |disk_safe|
    UltraVault::DiskSafe.new(disk_safe)
  end
end