Class: Billing::MockLimiter

Inherits:
Object
  • Object
show all
Defined in:
app/models/billing/mock_limiter.rb

Instance Method Summary collapse

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

Returns:

  • (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

Returns:

  • (Boolean)


13
14
15
# File 'app/models/billing/mock_limiter.rb', line 13

def exhausted?(model, enforcement = "hard")
  false
end