Module: Adjust
- Extended by:
- Core::Configurable
- Defined in:
- lib/adjust.rb,
lib/adjust/version.rb,
lib/adjust/core/tokens.rb,
lib/adjust/clients/base.rb,
lib/adjust/clients/event.rb,
lib/adjust/clients/revenue.rb,
lib/adjust/core/configurable.rb,
lib/adjust/transport/faraday.rb,
lib/adjust/core/configuration.rb,
lib/adjust/transport/fail_hard.rb,
lib/adjust/representers/event_representer.rb
Defined Under Namespace
Modules: Clients, Core, Representers, Transport
Constant Summary
collapse
- VERSION =
'0.0.4'
Class Method Summary
collapse
configuration, load
Class Method Details
.current_time ⇒ Object
31
32
33
34
35
|
# File 'lib/adjust.rb', line 31
def current_time
return Time.zone.now.iso8601 if Time.respond_to? :zone
Time.now.utc.iso8601
end
|
.event(app:, event:, time: current_time, **device) ⇒ Object
13
14
15
16
17
18
19
|
# File 'lib/adjust.rb', line 13
def event(app:, event:, time: current_time, **device)
Clients::Event.new(
**tokens(app, event),
environment: environment,
created_at: time,
**device)
end
|
.revenue(app:, event:, revenue:, currency:, time: current_time, **device) ⇒ Object
21
22
23
24
25
26
27
28
29
|
# File 'lib/adjust.rb', line 21
def revenue(app:, event:, revenue:, currency:, time: current_time, **device)
Clients::Revenue.new(
**tokens(app, event),
environment: environment,
created_at: time,
revenue: revenue,
currency: currency,
**device)
end
|