class Gobbler::Quota
Public Class Methods
get()
click to toggle source
@return [Quota] The transfer and storage quota for your account
# File lib/gobbler/quota.rb, line 9 def self.get new(::Gobbler.request("v1/quotas")) end
Public Instance Methods
storage()
click to toggle source
@return [Integer] The total bytes you can backup (note -1 represents unlimted)
# File lib/gobbler/quota.rb, line 24 def storage quotas["limits"]["storage"] end
transfer()
click to toggle source
@return [Integer] The total bytes you can sending (note -1 represents unlimted)
# File lib/gobbler/quota.rb, line 14 def transfer quotas["limits"]["transfer"] end
unlimited_transfer?()
click to toggle source
@return [Boolean] If your account has unlimited sending
# File lib/gobbler/quota.rb, line 19 def unlimited_transfer? transfer == -1 end