Class: ActionLimiter::TokenBucket::Bucket

Inherits:
Struct
  • Object
show all
Defined in:
lib/action_limiter/token_bucket.rb

Overview

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Attribute Details

#max_sizeObject

Returns the value of attribute max_size

Returns:

  • the current value of max_size



16
17
18
# File 'lib/action_limiter/token_bucket.rb', line 16

def max_size
  @max_size
end

#nameObject

Returns the value of attribute name

Returns:

  • the current value of name



16
17
18
# File 'lib/action_limiter/token_bucket.rb', line 16

def name
  @name
end

#periodObject

Returns the value of attribute period

Returns:

  • the current value of period



16
17
18
# File 'lib/action_limiter/token_bucket.rb', line 16

def period
  @period
end

#valueObject

Returns the value of attribute value

Returns:

  • the current value of value



16
17
18
# File 'lib/action_limiter/token_bucket.rb', line 16

def value
  @value
end