Sha256: f29c12709c2be5115b651ed9ddf6ee23e9193859288e0af02247821f34a23f8c

Contents?: true

Size: 632 Bytes

Versions: 7

Compression:

Stored size: 632 Bytes

Contents

# frozen_string_literal: true

module Brevio::Session
  extend self
  # Function used to fetch the current audit company session for a given Brevio ID.
  # This session contains information about an audit company shared by any number of
  # users. If the audit company has been updated in ID (e.g. changed logo or name), the
  # database record of the local service (e.g. Confirm/Sign) will fetch the updates if
  # the timestamp in this session is greater than their own local timestamps.
  #
  def audit_company_updated_at(brevio_id)
    Config.config.redis.get("#{Config::Redis::Prefixes::AUDIT_COMPANY}:#{brevio_id}")
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
brevio-session-1.0.0 lib/brevio/session.rb
brevio-session-0.2.5 lib/brevio/session.rb
brevio-session-0.2.5.pre.beta lib/brevio/session.rb
brevio-session-0.2.4 lib/brevio/session.rb
brevio-session-0.2.3 lib/brevio/session.rb
brevio-session-0.2.2 lib/brevio/session.rb
brevio-session-0.2.1 lib/brevio/session.rb