Sha256: ace885b36e95eb7f8b892976b650e66c4c66bfd52ee9ceb17ef42d60bcc635b1
Contents?: true
Size: 597 Bytes
Versions: 3
Compression:
Stored size: 597 Bytes
Contents
require 'hashie' module Duracloud class StorageReport < Hashie::Trash property "space_id", from: "spaceId" property "store_id", from: "storeId" property "byte_count", from: "byteCount" property "object_count", from: "objectCount" property "account_id", from: "accountId" property "timestamp" def time @time ||= Time.at(timestamp / 1000.0).utc end def to_s <<-EOS Date: #{time} Space ID: #{space_id || "(all)"} Store ID: #{store_id} Objects: #{object_count} Total size: #{byte_count} bytes EOS end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
duracloud-client-0.10.2 | lib/duracloud/storage_report.rb |
duracloud-client-0.10.1 | lib/duracloud/storage_report.rb |
duracloud-client-0.10.0 | lib/duracloud/storage_report.rb |