Class: SirvRestApi::AccountLimits

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

Overview

Account limits

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ AccountLimits

Returns a new instance of AccountLimits.



46
47
48
49
50
# File 'lib/sirv_rest_api/models.rb', line 46

def initialize(data = {})
  @s3 = data["s3"] ? RateLimitInfo.new(data["s3"]) : nil
  @rest = data["rest"] ? RateLimitInfo.new(data["rest"]) : nil
  @ftp = data["ftp"] ? RateLimitInfo.new(data["ftp"]) : nil
end

Instance Attribute Details

#ftpObject

Returns the value of attribute ftp.



44
45
46
# File 'lib/sirv_rest_api/models.rb', line 44

def ftp
  @ftp
end

#restObject

Returns the value of attribute rest.



44
45
46
# File 'lib/sirv_rest_api/models.rb', line 44

def rest
  @rest
end

#s3Object

Returns the value of attribute s3.



44
45
46
# File 'lib/sirv_rest_api/models.rb', line 44

def s3
  @s3
end