Class: OneLogin::Api::Models::RateLimit

Inherits:
Object
  • Object
show all
Defined in:
lib/onelogin/api/models/rate_limit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#limitObject

Returns the value of attribute limit.


7
8
9
# File 'lib/onelogin/api/models/rate_limit.rb', line 7

def limit
  @limit
end

#remainingObject

Returns the value of attribute remaining.


7
8
9
# File 'lib/onelogin/api/models/rate_limit.rb', line 7

def remaining
  @remaining
end

#resetObject

Returns the value of attribute reset.


7
8
9
# File 'lib/onelogin/api/models/rate_limit.rb', line 7

def reset
  @reset
end