Sha256: ab8b18f0008560f9e79e39636cf54294e85961077fc2c93952b631d42a1c3999

Contents?: true

Size: 680 Bytes

Versions: 22

Compression:

Stored size: 680 Bytes

Contents

# Toplevel Pubnub module.
# frozen_string_literal: true

module Pubnub
  # Validator module that holds all validators modules
  module Validator
    # Validator for GetAllUuidMetadata event
    module GetAllUuidMetadata
      include CommonValidator

      def validate!
        return if @skip_validate

        validate_subscribe_key!
      end

      private

      def validate_subscribe_key!
        return unless @subscribe_key.nil?

        raise(
          ArgumentError.new(object: self, message: ':subscribe_key is required for get all uuid metadata event.'),
          ':subscribe_key is required for get all uuid metadata event.'
        )
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
pubnub-5.4.0 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-5.3.5 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-5.3.4 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-5.3.3 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-5.3.2 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-5.3.1 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-5.3.0 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-5.2.2 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-5.2.1 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-5.2.0 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-5.1.2 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-5.1.1 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-5.1.0 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-5.0.0 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-4.8.0 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-4.7.1 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-4.7.0 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-4.6.2 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-4.6.1 lib/pubnub/validators/get_all_uuid_metadata.rb
pubnub-4.6.0 lib/pubnub/validators/get_all_uuid_metadata.rb