Class: OneLogin::Api::Models::RateLimit
- Inherits:
-
Object
- Object
- OneLogin::Api::Models::RateLimit
- Defined in:
- lib/onelogin/api/models/rate_limit.rb
Instance Attribute Summary collapse
-
#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) ⇒ RateLimit
constructor
A new instance of RateLimit.
Constructor Details
#initialize(data) ⇒ RateLimit
Returns a new instance of RateLimit.
9 10 11 12 13 |
# File 'lib/onelogin/api/models/rate_limit.rb', line 9 def initialize(data) @limit = data['X-RateLimit-Limit'] @remaining = data['X-RateLimit-Remaining'] @reset = data['X-RateLimit-Reset'] end |
Instance Attribute Details
#limit ⇒ Object
Returns the value of attribute limit.
7 8 9 |
# File 'lib/onelogin/api/models/rate_limit.rb', line 7 def limit @limit end |
#remaining ⇒ Object
Returns the value of attribute remaining.
7 8 9 |
# File 'lib/onelogin/api/models/rate_limit.rb', line 7 def remaining @remaining end |
#reset ⇒ Object
Returns the value of attribute reset.
7 8 9 |
# File 'lib/onelogin/api/models/rate_limit.rb', line 7 def reset @reset end |