Class: Pause::RateLimitedEvent
- Inherits:
-
Object
- Object
- Pause::RateLimitedEvent
- Defined in:
- lib/pause/rate_limited_event.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#period_check ⇒ Object
Returns the value of attribute period_check.
-
#sum ⇒ Object
Returns the value of attribute sum.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(action, period_check, sum, timestamp) ⇒ RateLimitedEvent
constructor
A new instance of RateLimitedEvent.
Constructor Details
#initialize(action, period_check, sum, timestamp) ⇒ RateLimitedEvent
Returns a new instance of RateLimitedEvent.
5 6 7 8 9 10 11 |
# File 'lib/pause/rate_limited_event.rb', line 5 def initialize(action, period_check, sum, ) @action = action @identifier = action.identifier @period_check = period_check @sum = sum @timestamp = end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
3 4 5 |
# File 'lib/pause/rate_limited_event.rb', line 3 def action @action end |
#identifier ⇒ Object
Returns the value of attribute identifier.
3 4 5 |
# File 'lib/pause/rate_limited_event.rb', line 3 def identifier @identifier end |
#period_check ⇒ Object
Returns the value of attribute period_check.
3 4 5 |
# File 'lib/pause/rate_limited_event.rb', line 3 def period_check @period_check end |
#sum ⇒ Object
Returns the value of attribute sum.
3 4 5 |
# File 'lib/pause/rate_limited_event.rb', line 3 def sum @sum end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
3 4 5 |
# File 'lib/pause/rate_limited_event.rb', line 3 def @timestamp end |