Class: UltraVault::RecoveryPointService
- Inherits:
-
SoapService
- Object
- SoapService
- UltraVault::RecoveryPointService
- Defined in:
- lib/ultravault/soap_service/recovery_point_service.rb
Instance Attribute Summary
Attributes inherited from SoapService
Instance Method Summary collapse
- #find_recovery_points_by_disk_safe_id(disk_safe_id) ⇒ Object
-
#initialize ⇒ RecoveryPointService
constructor
A new instance of RecoveryPointService.
Methods inherited from SoapService
#extract_params, #extract_params_array
Constructor Details
#initialize ⇒ RecoveryPointService
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 |