Class: Pause::RateLimitedEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/pause/rate_limited_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, timestamp)
  @action = action
  @identifier = action.identifier
  @period_check = period_check
  @sum = sum
  @timestamp = timestamp
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



3
4
5
# File 'lib/pause/rate_limited_event.rb', line 3

def action
  @action
end

#identifierObject

Returns the value of attribute identifier.



3
4
5
# File 'lib/pause/rate_limited_event.rb', line 3

def identifier
  @identifier
end

#period_checkObject

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

#sumObject

Returns the value of attribute sum.



3
4
5
# File 'lib/pause/rate_limited_event.rb', line 3

def sum
  @sum
end

#timestampObject

Returns the value of attribute timestamp.



3
4
5
# File 'lib/pause/rate_limited_event.rb', line 3

def timestamp
  @timestamp
end