Sha256: 1af9b25a040c79466abb686a94443276a34a4e84154878007545d1bad533d261
Contents?: true
Size: 851 Bytes
Versions: 1
Compression:
Stored size: 851 Bytes
Contents
require 'adjust/version' require 'adjust/transport/faraday' module Adjust autoload :Core, 'adjust/core' autoload :Clients, 'adjust/clients' autoload :Representers, 'adjust/representers' class << self include Core::Configurable def event(app:, event:, time: current_time, **device) Clients::Event.new( **tokens(app, event), environment: environment, created_at: time, **device) end 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 def current_time return Time.zone.now.iso8601 if Time.respond_to? :zone Time.now.utc.iso8601 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adjust-0.0.3 | lib/adjust.rb |