Class: KmResque
- Inherits:
-
Object
show all
- Defined in:
- lib/km_resque.rb,
lib/km_resque/set_job.rb,
lib/km_resque/version.rb,
lib/km_resque/alias_job.rb,
lib/km_resque/api_client.rb,
lib/km_resque/record_job.rb,
lib/km_resque/configuration.rb
Defined Under Namespace
Classes: AliasJob, ApiClient, Configuration, Error, RecordJob, SetJob
Constant Summary
collapse
- VERSION =
"1.0.3"
Class Method Summary
collapse
Class Method Details
.alias(identifier1, identifier2, timestamp = Time.now.to_i) ⇒ Object
15
16
17
|
# File 'lib/km_resque.rb', line 15
def self.alias(identifier1, identifier2, timestamp=Time.now.to_i)
::Resque.enqueue(AliasJob, identifier1, identifier2, timestamp)
end
|
.configuration ⇒ Object
12
13
14
|
# File 'lib/km_resque.rb', line 12
def self.configuration
@configuration ||= Configuration.new
end
|
9
10
11
|
# File 'lib/km_resque.rb', line 9
def self.configure(&block)
yield configuration
end
|
.record(identifier, eventName, properties, timestamp = Time.now.to_i) ⇒ Object
21
22
23
|
# File 'lib/km_resque.rb', line 21
def self.record(identifier, eventName, properties, timestamp=Time.now.to_i)
::Resque.enqueue(RecordJob, identifier, eventName, properties, timestamp)
end
|
.set(identifier, properties, timestamp = Time.now.to_i) ⇒ Object
18
19
20
|
# File 'lib/km_resque.rb', line 18
def self.set(identifier, properties, timestamp=Time.now.to_i)
::Resque.enqueue(SetJob, identifier, properties, timestamp)
end
|