Sha256: 027163f3702819fcaa9d72b5d3857ade9f53aeddebdc876b8d463c72ea0abe23
Contents?: true
Size: 898 Bytes
Versions: 3
Compression:
Stored size: 898 Bytes
Contents
module Pubnub class Audit include Pubnub::Event include Pubnub::SingleEvent include Pubnub::Formatter include Pubnub::Validator include Pubnub::PAM def initialize(options, app) super @event = 'audit' @allow_multiple_channels = false @timestamp = current_time end def validate! raise ArgumentError.new(:object => self, :message => 'publish_key is required by Audit') unless @publish_key raise ArgumentError.new(:object => self, :message => 'Parameter secret_key is required by Audit') if !@secret_key || @secret_key == 0 end private def parameters(app, signature = false) { :timestamp => @timestamp }.merge(super(app, signature)) end def path(app) '/' + [ 'v1', 'auth', 'audit', 'sub-key', @subscribe_key ].join('/') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pubnub-3.6.10 | lib/pubnub/events/audit.rb |
pubnub-3.6.9 | lib/pubnub/events/audit.rb |
pubnub-3.6.7 | lib/pubnub/events/audit.rb |