Class: UltraVault::RecoveryPointService

Inherits:
SoapService show all
Defined in:
lib/ultravault/soap_service/recovery_point_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

#initializeRecoveryPointService

Returns a new instance of RecoveryPointService.



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

def initialize
  super(:RecoveryPoints)
end

Instance Method Details

#find_recovery_points_by_disk_safe_id(disk_safe_id) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/ultravault/soap_service/recovery_point_service.rb', line 9

def find_recovery_points_by_disk_safe_id(disk_safe_id)
  response_hash = client.request(:getRecoveryPoints,
    :diskSafe => {:id => disk_safe_id },
    :includeMerged => false).to_hash
  params = extract_params_array(response_hash,
    :get_recovery_points_response)
  params.collect do |recovery_point|
    UltraVault::RecoveryPoint.new(recovery_point)
  end

end