Class: SirvRestApi::RateLimitInfo
- Inherits:
-
Object
- Object
- SirvRestApi::RateLimitInfo
- Defined in:
- lib/sirv_rest_api/models.rb
Overview
Rate limit information
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#remaining ⇒ Object
Returns the value of attribute remaining.
-
#reset ⇒ Object
Returns the value of attribute reset.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ RateLimitInfo
constructor
A new instance of RateLimitInfo.
Constructor Details
#initialize(data = {}) ⇒ RateLimitInfo
Returns a new instance of RateLimitInfo.
34 35 36 37 38 39 |
# File 'lib/sirv_rest_api/models.rb', line 34 def initialize(data = {}) @limit = data["limit"] @remaining = data["remaining"] @reset = data["reset"] @count = data["count"] end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
32 33 34 |
# File 'lib/sirv_rest_api/models.rb', line 32 def count @count end |
#limit ⇒ Object
Returns the value of attribute limit.
32 33 34 |
# File 'lib/sirv_rest_api/models.rb', line 32 def limit @limit end |
#remaining ⇒ Object
Returns the value of attribute remaining.
32 33 34 |
# File 'lib/sirv_rest_api/models.rb', line 32 def remaining @remaining end |
#reset ⇒ Object
Returns the value of attribute reset.
32 33 34 |
# File 'lib/sirv_rest_api/models.rb', line 32 def reset @reset end |