Class: TokenUsageLimit
- Inherits:
-
Object
- Object
- TokenUsageLimit
- Defined in:
- lib/default.rb
Overview
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#count ⇒ Object
Returns the value of attribute count.
-
#lastResetAmount ⇒ Object
Returns the value of attribute lastResetAmount.
-
#lastResetCount ⇒ Object
Returns the value of attribute lastResetCount.
-
#lastResetTimestamp ⇒ Object
Returns the value of attribute lastResetTimestamp.
Instance Method Summary collapse
-
#initialize(count = nil, amount = nil, lastResetCount = nil, lastResetAmount = nil, lastResetTimestamp = nil) ⇒ TokenUsageLimit
constructor
A new instance of TokenUsageLimit.
Constructor Details
#initialize(count = nil, amount = nil, lastResetCount = nil, lastResetAmount = nil, lastResetTimestamp = nil) ⇒ TokenUsageLimit
Returns a new instance of TokenUsageLimit.
238 239 240 241 242 243 244 |
# File 'lib/default.rb', line 238 def initialize(count = nil, amount = nil, lastResetCount = nil, lastResetAmount = nil, lastResetTimestamp = nil) @count = count @amount = amount @lastResetCount = lastResetCount @lastResetAmount = lastResetAmount @lastResetTimestamp = lastResetTimestamp end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
233 234 235 |
# File 'lib/default.rb', line 233 def amount @amount end |
#count ⇒ Object
Returns the value of attribute count.
232 233 234 |
# File 'lib/default.rb', line 232 def count @count end |
#lastResetAmount ⇒ Object
Returns the value of attribute lastResetAmount.
235 236 237 |
# File 'lib/default.rb', line 235 def lastResetAmount @lastResetAmount end |
#lastResetCount ⇒ Object
Returns the value of attribute lastResetCount.
234 235 236 |
# File 'lib/default.rb', line 234 def lastResetCount @lastResetCount end |
#lastResetTimestamp ⇒ Object
Returns the value of attribute lastResetTimestamp.
236 237 238 |
# File 'lib/default.rb', line 236 def lastResetTimestamp @lastResetTimestamp end |