Class: SirvRestApi::RateLimitInfo

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

Overview

Rate limit information

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#countObject

Returns the value of attribute count.



32
33
34
# File 'lib/sirv_rest_api/models.rb', line 32

def count
  @count
end

#limitObject

Returns the value of attribute limit.



32
33
34
# File 'lib/sirv_rest_api/models.rb', line 32

def limit
  @limit
end

#remainingObject

Returns the value of attribute remaining.



32
33
34
# File 'lib/sirv_rest_api/models.rb', line 32

def remaining
  @remaining
end

#resetObject

Returns the value of attribute reset.



32
33
34
# File 'lib/sirv_rest_api/models.rb', line 32

def reset
  @reset
end