Exception: UserPattern::ThresholdExceeded
- Inherits:
-
StandardError
- Object
- StandardError
- UserPattern::ThresholdExceeded
- Defined in:
- lib/userpattern/threshold_exceeded.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#model_type ⇒ Object
readonly
Returns the value of attribute model_type.
-
#period ⇒ Object
readonly
Returns the value of attribute period.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(endpoint:, user_id:, model_type:, period:, count:, limit:) ⇒ ThresholdExceeded
constructor
A new instance of ThresholdExceeded.
Constructor Details
#initialize(endpoint:, user_id:, model_type:, period:, count:, limit:) ⇒ ThresholdExceeded
Returns a new instance of ThresholdExceeded.
7 8 9 10 11 12 13 14 15 |
# File 'lib/userpattern/threshold_exceeded.rb', line 7 def initialize(endpoint:, user_id:, model_type:, period:, count:, limit:) @endpoint = endpoint @user_id = user_id @model_type = model_type @period = period @count = count @limit = limit super() end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
5 6 7 |
# File 'lib/userpattern/threshold_exceeded.rb', line 5 def count @count end |
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
5 6 7 |
# File 'lib/userpattern/threshold_exceeded.rb', line 5 def endpoint @endpoint end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
5 6 7 |
# File 'lib/userpattern/threshold_exceeded.rb', line 5 def limit @limit end |
#model_type ⇒ Object (readonly)
Returns the value of attribute model_type.
5 6 7 |
# File 'lib/userpattern/threshold_exceeded.rb', line 5 def model_type @model_type end |
#period ⇒ Object (readonly)
Returns the value of attribute period.
5 6 7 |
# File 'lib/userpattern/threshold_exceeded.rb', line 5 def period @period end |
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
5 6 7 |
# File 'lib/userpattern/threshold_exceeded.rb', line 5 def user_id @user_id end |