Class: SirvRestApi::StorageInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/sirv_rest_api/models.rb

Overview

Storage information

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#allowanceObject

Returns the value of attribute allowance.



55
56
57
# File 'lib/sirv_rest_api/models.rb', line 55

def allowance
  @allowance
end

#burstableObject

Returns the value of attribute burstable.



55
56
57
# File 'lib/sirv_rest_api/models.rb', line 55

def burstable
  @burstable
end

#filesObject

Returns the value of attribute files.



55
56
57
# File 'lib/sirv_rest_api/models.rb', line 55

def files
  @files
end

#usedObject

Returns the value of attribute used.



55
56
57
# File 'lib/sirv_rest_api/models.rb', line 55

def used
  @used
end