Class: Cloudscopes::StatFs::Result
- Inherits:
-
Struct
- Object
- Struct
- Cloudscopes::StatFs::Result
- Defined in:
- lib/cloudscopes/filesystem.rb
Overview
The result of a statfs operation, see “man statfs” for more information on each field. We add some helper methods that deal in bytes.
Instance Attribute Summary collapse
-
#bavail ⇒ Object
Returns the value of attribute bavail.
-
#bfree ⇒ Object
Returns the value of attribute bfree.
-
#blocks ⇒ Object
Returns the value of attribute blocks.
-
#bsize ⇒ Object
Returns the value of attribute bsize.
-
#ffree ⇒ Object
Returns the value of attribute ffree.
-
#files ⇒ Object
Returns the value of attribute files.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#bavail ⇒ Object
Returns the value of attribute bavail
6 7 8 |
# File 'lib/cloudscopes/filesystem.rb', line 6 def bavail @bavail end |
#bfree ⇒ Object
Returns the value of attribute bfree
6 7 8 |
# File 'lib/cloudscopes/filesystem.rb', line 6 def bfree @bfree end |
#blocks ⇒ Object
Returns the value of attribute blocks
6 7 8 |
# File 'lib/cloudscopes/filesystem.rb', line 6 def blocks @blocks end |
#bsize ⇒ Object
Returns the value of attribute bsize
6 7 8 |
# File 'lib/cloudscopes/filesystem.rb', line 6 def bsize @bsize end |
#ffree ⇒ Object
Returns the value of attribute ffree
6 7 8 |
# File 'lib/cloudscopes/filesystem.rb', line 6 def ffree @ffree end |
#files ⇒ Object
Returns the value of attribute files
6 7 8 |
# File 'lib/cloudscopes/filesystem.rb', line 6 def files @files end |
#type ⇒ Object
Returns the value of attribute type
6 7 8 |
# File 'lib/cloudscopes/filesystem.rb', line 6 def type @type end |
Instance Method Details
#avail ⇒ Object
9 |
# File 'lib/cloudscopes/filesystem.rb', line 9 def avail; bavail * bsize; end |
#free ⇒ Object
8 |
# File 'lib/cloudscopes/filesystem.rb', line 8 def free; bfree * bsize; end |
#total ⇒ Object
7 |
# File 'lib/cloudscopes/filesystem.rb', line 7 def total; blocks * bsize; end |