Class: UltraVault::DiskSafe::DeviceList
- Inherits:
-
Object
- Object
- UltraVault::DiskSafe::DeviceList
- Defined in:
- lib/ultravault/data_objects/disk_safe.rb
Instance Attribute Summary collapse
-
#capacity ⇒ Object
readonly
Returns the value of attribute capacity.
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#mount_point ⇒ Object
readonly
Returns the value of attribute mount_point.
-
#mounted ⇒ Object
readonly
Returns the value of attribute mounted.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(params) ⇒ DeviceList
constructor
A new instance of DeviceList.
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
#capacity ⇒ Object (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_type ⇒ Object (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 |
#enabled ⇒ Object (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_point ⇒ Object (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 |
#mounted ⇒ Object (readonly)
Returns the value of attribute mounted.
62 63 64 |
# File 'lib/ultravault/data_objects/disk_safe.rb', line 62 def mounted @mounted end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
62 63 64 |
# File 'lib/ultravault/data_objects/disk_safe.rb', line 62 def path @path end |