Class: UltraVault::DiskSafe::DeviceList

Inherits:
Object
  • Object
show all
Defined in:
lib/ultravault/data_objects/disk_safe.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ DeviceList



65
66
67
68
69
70
71
72
# File 'lib/ultravault/data_objects/disk_safe.rb', line 65

def initialize(params)
  @capacity = params[:capacity].to_i
  @content_type = params[:device_content_type]
  @path = params[:device_path] 
  @enabled = params[:enabled]
  @mount_point = params[:mount_point]
  @mounted = params[:mounted]
end

Instance Attribute Details

#capacityObject (readonly)

Returns the value of attribute capacity.



62
63
64
# File 'lib/ultravault/data_objects/disk_safe.rb', line 62

def capacity
  @capacity
end

#content_typeObject (readonly)

Returns the value of attribute content_type.



62
63
64
# File 'lib/ultravault/data_objects/disk_safe.rb', line 62

def content_type
  @content_type
end

#enabledObject (readonly)

Returns the value of attribute enabled.



62
63
64
# File 'lib/ultravault/data_objects/disk_safe.rb', line 62

def enabled
  @enabled
end

#mount_pointObject (readonly)

Returns the value of attribute mount_point.



62
63
64
# File 'lib/ultravault/data_objects/disk_safe.rb', line 62

def mount_point
  @mount_point
end

#mountedObject (readonly)

Returns the value of attribute mounted.



62
63
64
# File 'lib/ultravault/data_objects/disk_safe.rb', line 62

def mounted
  @mounted
end

#pathObject (readonly)

Returns the value of attribute path.



62
63
64
# File 'lib/ultravault/data_objects/disk_safe.rb', line 62

def path
  @path
end