Class: Billing::MockLimiter
- Inherits:
-
Object
- Object
- Billing::MockLimiter
- Defined in:
- app/models/billing/mock_limiter.rb
Instance Method Summary collapse
- #broken_hard_limits_for(action, model, count: 1) ⇒ Object
- #can?(action, model, count: 1) ⇒ Boolean
- #exhausted?(model, enforcement = "hard") ⇒ Boolean
-
#initialize(team) ⇒ MockLimiter
constructor
A new instance of MockLimiter.
Constructor Details
#initialize(team) ⇒ MockLimiter
Returns a new instance of MockLimiter.
2 3 |
# File 'app/models/billing/mock_limiter.rb', line 2 def initialize(team) end |
Instance Method Details
#broken_hard_limits_for(action, model, count: 1) ⇒ Object
5 6 7 |
# File 'app/models/billing/mock_limiter.rb', line 5 def broken_hard_limits_for(action, model, count: 1) [] end |
#can?(action, model, count: 1) ⇒ Boolean
9 10 11 |
# File 'app/models/billing/mock_limiter.rb', line 9 def can?(action, model, count: 1) true end |
#exhausted?(model, enforcement = "hard") ⇒ Boolean
13 14 15 |
# File 'app/models/billing/mock_limiter.rb', line 13 def exhausted?(model, enforcement = "hard") false end |