Class: Fog::Compute::XenServer::HostCrashDumps

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/xenserver/models/compute/host_crash_dumps.rb

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object



10
11
12
13
# File 'lib/fog/xenserver/models/compute/host_crash_dumps.rb', line 10

def all(options={})
  data = service.get_records 'host_crashdump'
  load(data)
end

#get(host_crashdump_ref) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/fog/xenserver/models/compute/host_crash_dumps.rb', line 15

def get( host_crashdump_ref )
  if host_crashdump_ref && host_crashdump = service.get_record( host_crashdump_ref, 'host_crashdump' )
    new(host_crashdump)
  else
    nil
  end
end