Sha256: 7744c44c05299326109902da1959a3de22b9b46a867f730dd2c6219cc078e851

Contents?: true

Size: 573 Bytes

Versions: 14

Compression:

Stored size: 573 Bytes

Contents

# Toplevel Pubnub module.
module Pubnub
  # Holds here_now functionality
  class Audit < PAM
    include Celluloid
    include Pubnub::Validator::Audit

    def initialize(options, app)
      @event = :audit
      super
    end

    private

    def current_operation
      Pubnub::Constants::OPERATION_AUDIT
    end

    def parameters(signature = false)
      { timestamp: @timestamp }.merge(super(signature))
    end

    def path
      '/' + [
        'v1',
        'auth',
        'audit',
        'sub-key',
        @subscribe_key
      ].join('/')
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
pubnub-4.0.27 lib/pubnub/events/audit.rb
pubnub-4.0.25 lib/pubnub/events/audit.rb
pubnub-4.0.23 lib/pubnub/events/audit.rb
pubnub-4.0.22 lib/pubnub/events/audit.rb
pubnub-4.0.21 lib/pubnub/events/audit.rb
pubnub-4.0.20 lib/pubnub/events/audit.rb
pubnub-4.0.19 lib/pubnub/events/audit.rb
pubnub-4.0.18 lib/pubnub/events/audit.rb
pubnub-4.0.17 lib/pubnub/events/audit.rb
pubnub-4.0.16 lib/pubnub/events/audit.rb
pubnub-4.0.15 lib/pubnub/events/audit.rb
pubnub-4.0.14 lib/pubnub/events/audit.rb
pubnub-4.0.13 lib/pubnub/events/audit.rb
pubnub-4.0.12 lib/pubnub/events/audit.rb