Class: Occurro::Jobs::DelayedJob

Inherits:
Struct
  • Object
show all
Defined in:
lib/occurro/jobs/delayed_job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#countObject

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



3
4
5
# File 'lib/occurro/jobs/delayed_job.rb', line 3

def count
  @count
end

#modelObject

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



3
4
5
# File 'lib/occurro/jobs/delayed_job.rb', line 3

def model
  @model
end

Instance Method Details

#performObject



5
6
7
# File 'lib/occurro/jobs/delayed_job.rb', line 5

def perform
  Occurro::Counter.increment_counters(model, count)
end