Class: SirvRestApi::StorageInfo
- Inherits:
-
Object
- Object
- SirvRestApi::StorageInfo
- Defined in:
- lib/sirv_rest_api/models.rb
Overview
Storage information
Instance Attribute Summary collapse
-
#allowance ⇒ Object
Returns the value of attribute allowance.
-
#burstable ⇒ Object
Returns the value of attribute burstable.
-
#files ⇒ Object
Returns the value of attribute files.
-
#used ⇒ Object
Returns the value of attribute used.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ StorageInfo
constructor
A new instance of StorageInfo.
Constructor Details
#initialize(data = {}) ⇒ StorageInfo
Returns a new instance of StorageInfo.
57 58 59 60 61 62 |
# File 'lib/sirv_rest_api/models.rb', line 57 def initialize(data = {}) @allowance = data["allowance"] @used = data["used"] @files = data["files"] @burstable = data["burstable"] end |
Instance Attribute Details
#allowance ⇒ Object
Returns the value of attribute allowance.
55 56 57 |
# File 'lib/sirv_rest_api/models.rb', line 55 def allowance @allowance end |
#burstable ⇒ Object
Returns the value of attribute burstable.
55 56 57 |
# File 'lib/sirv_rest_api/models.rb', line 55 def burstable @burstable end |
#files ⇒ Object
Returns the value of attribute files.
55 56 57 |
# File 'lib/sirv_rest_api/models.rb', line 55 def files @files end |
#used ⇒ Object
Returns the value of attribute used.
55 56 57 |
# File 'lib/sirv_rest_api/models.rb', line 55 def used @used end |