Class: UniqSysOmega::Tariffs::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/filter.rb

Instance Method Summary collapse

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, , started_at, amount, options={})
  raise "Unimplemented"
end

#permitted?(computer_id, login_id, options = {}) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/filter.rb', line 15

def permitted?(computer_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

Returns:

  • (Boolean)


11
12
13
# File 'lib/filter.rb', line 11

def start_permitted?(computer_id, , options={})
  raise "Unimplemented"
end