lib/pubnub/events/grant.rb in pubnub-4.0.9 vs lib/pubnub/events/grant.rb in pubnub-4.0.12
- old
+ new
@@ -11,9 +11,13 @@
@ttl ||= Pubnub::Constants::DEFAULT_TTL
end
private
+ def current_operation
+ Pubnub::Constants::OPERATION_GRANT
+ end
+
def parameters(signature = false)
write = [0, '0', false].include?(@write) ? 0 : 1
read = [0, '0', false].include?(@read) ? 0 : 1
manage = [0, '0', false].include?(@manage) ? 0 : 1 # unless @group.blank?