Class: SirvRestApi::StorageStats
- Inherits:
-
Object
- Object
- SirvRestApi::StorageStats
- Defined in:
- lib/sirv_rest_api/models.rb
Overview
Storage statistics
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#files ⇒ Object
Returns the value of attribute files.
-
#storage ⇒ Object
Returns the value of attribute storage.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ StorageStats
constructor
A new instance of StorageStats.
Constructor Details
#initialize(data = {}) ⇒ StorageStats
Returns a new instance of StorageStats.
313 314 315 316 317 |
# File 'lib/sirv_rest_api/models.rb', line 313 def initialize(data = {}) @date = data["date"] @storage = data["storage"] @files = data["files"] end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
311 312 313 |
# File 'lib/sirv_rest_api/models.rb', line 311 def date @date end |
#files ⇒ Object
Returns the value of attribute files.
311 312 313 |
# File 'lib/sirv_rest_api/models.rb', line 311 def files @files end |
#storage ⇒ Object
Returns the value of attribute storage.
311 312 313 |
# File 'lib/sirv_rest_api/models.rb', line 311 def storage @storage end |