Class: Files::UsageByTopLevelDir
- Inherits:
-
Object
- Object
- Files::UsageByTopLevelDir
- Defined in:
- lib/files.com/models/usage_by_top_level_dir.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#count ⇒ Object
int64 - File count.
-
#dir ⇒ Object
string - Directory name.
-
#initialize(attributes = {}, options = {}) ⇒ UsageByTopLevelDir
constructor
A new instance of UsageByTopLevelDir.
-
#size ⇒ Object
int64 - Usage.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ UsageByTopLevelDir
Returns a new instance of UsageByTopLevelDir.
7 8 9 10 |
# File 'lib/files.com/models/usage_by_top_level_dir.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/usage_by_top_level_dir.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/usage_by_top_level_dir.rb', line 5 def @options end |
Instance Method Details
#count ⇒ Object
int64 - File count
23 24 25 |
# File 'lib/files.com/models/usage_by_top_level_dir.rb', line 23 def count @attributes[:count] end |
#dir ⇒ Object
string - Directory name
13 14 15 |
# File 'lib/files.com/models/usage_by_top_level_dir.rb', line 13 def dir @attributes[:dir] end |
#size ⇒ Object
int64 - Usage
18 19 20 |
# File 'lib/files.com/models/usage_by_top_level_dir.rb', line 18 def size @attributes[:size] end |