Class: UniqSysOmega::Tariffs::Filter
- Inherits:
-
Object
- Object
- UniqSysOmega::Tariffs::Filter
show all
- Defined in:
- lib/filter.rb
Instance Method Summary
collapse
-
#calculate_cost(computer_id, login_id, started_at, amount, options = {}) ⇒ Object
-
#initialize(settings, tarif_id) ⇒ Filter
constructor
A new instance of Filter.
-
#permitted?(computer_id, login_id, options = {}) ⇒ Boolean
-
#process_activity(unprocessed_activity, ft, options = {}) ⇒ Object
-
#start_permitted?(computer_id, login_id, options = {}) ⇒ Boolean
Constructor Details
#initialize(settings, tarif_id) ⇒ Filter
Returns a new instance of Filter.
5
6
7
8
9
|
# File 'lib/filter.rb', line 5
def initialize(settings, tarif_id)
@tarif_id = tarif_id
@settings = settings
after_initialize
end
|
Instance Method Details
#calculate_cost(computer_id, login_id, started_at, amount, options = {}) ⇒ Object
19
20
21
|
# File 'lib/filter.rb', line 19
def calculate_cost(computer_id, login_id, started_at, amount, options={})
raise "Unimplemented"
end
|
#permitted?(computer_id, login_id, options = {}) ⇒ Boolean
15
16
17
|
# File 'lib/filter.rb', line 15
def permitted?(computer_id, login_id, options={})
raise "Unimplemented"
end
|
#process_activity(unprocessed_activity, ft, options = {}) ⇒ Object
23
24
25
|
# File 'lib/filter.rb', line 23
def process_activity(unprocessed_activity, ft, options={})
raise "Unimplemented"
end
|
#start_permitted?(computer_id, login_id, options = {}) ⇒ Boolean
11
12
13
|
# File 'lib/filter.rb', line 11
def start_permitted?(computer_id, login_id, options={})
raise "Unimplemented"
end
|