Class: SirvRestApi::StorageStats

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

Overview

Storage statistics

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dateObject

Returns the value of attribute date.



311
312
313
# File 'lib/sirv_rest_api/models.rb', line 311

def date
  @date
end

#filesObject

Returns the value of attribute files.



311
312
313
# File 'lib/sirv_rest_api/models.rb', line 311

def files
  @files
end

#storageObject

Returns the value of attribute storage.



311
312
313
# File 'lib/sirv_rest_api/models.rb', line 311

def storage
  @storage
end