Class: UniqSysOmega::Tariffs::ComputerClassFilter
- Inherits:
-
Filter
- Object
- Filter
- UniqSysOmega::Tariffs::ComputerClassFilter
show all
- Defined in:
- lib/computer_class_filter.rb
Instance Method Summary
collapse
-
#calculate_cost(computer_id, login_id, started_at, amount, options = {}) ⇒ Object
-
#permitted?(computer_id, login_id, options = {}) ⇒ Boolean
-
#process_activity(unprocessed_activity, ft, options = {}) ⇒ Object
-
#start_permitted?(computer_id, login_id, options = {}) ⇒ Boolean
Methods inherited from Filter
#initialize
Instance Method Details
#calculate_cost(computer_id, login_id, started_at, amount, options = {}) ⇒ Object
13
14
15
|
# File 'lib/computer_class_filter.rb', line 13
def calculate_cost(computer_id, login_id, started_at, amount, options={})
computer_class(computer_id).calculate_cost(computer_id, login_id, started_at, amount, options)
end
|
#permitted?(computer_id, login_id, options = {}) ⇒ Boolean
9
10
11
|
# File 'lib/computer_class_filter.rb', line 9
def permitted?(computer_id, login_id, options={})
computer_class(computer_id).permitted?(computer_id, login_id, options)
end
|
#process_activity(unprocessed_activity, ft, options = {}) ⇒ Object
17
18
19
|
# File 'lib/computer_class_filter.rb', line 17
def process_activity(unprocessed_activity, ft, options={})
computer_class(unprocessed_activity.computer_id).process_activity(unprocessed_activity, ft, options)
end
|
#start_permitted?(computer_id, login_id, options = {}) ⇒ Boolean
5
6
7
|
# File 'lib/computer_class_filter.rb', line 5
def start_permitted?(computer_id, login_id, options={})
computer_class(computer_id).start_permitted?(computer_id, login_id, options)
end
|