Class: SirvRestApi::AccountLimits
- Inherits:
-
Object
- Object
- SirvRestApi::AccountLimits
- Defined in:
- lib/sirv_rest_api/models.rb
Overview
Account limits
Instance Attribute Summary collapse
-
#ftp ⇒ Object
Returns the value of attribute ftp.
-
#rest ⇒ Object
Returns the value of attribute rest.
-
#s3 ⇒ Object
Returns the value of attribute s3.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ AccountLimits
constructor
A new instance of AccountLimits.
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
#ftp ⇒ Object
Returns the value of attribute ftp.
44 45 46 |
# File 'lib/sirv_rest_api/models.rb', line 44 def ftp @ftp end |
#rest ⇒ Object
Returns the value of attribute rest.
44 45 46 |
# File 'lib/sirv_rest_api/models.rb', line 44 def rest @rest end |
#s3 ⇒ Object
Returns the value of attribute s3.
44 45 46 |
# File 'lib/sirv_rest_api/models.rb', line 44 def s3 @s3 end |