Sha256: d1a5ffeacc4e344348b43a108566f9b7c0f7974bac89618823fbd5e1a395c845
Contents?: true
Size: 675 Bytes
Versions: 37
Compression:
Stored size: 675 Bytes
Contents
# Toplevel Pubnub module. module Pubnub # Validator module that holds all validators modules module Validator # Validator for State event module State include CommonValidator def validate! return if @skip_validate validate_channel_and_uuid! end private def validate_channel_and_uuid! return unless @channel.empty? && @uuid_looking_for.nil? raise( ArgumentError.new( object: self, message: 'You have to specify :channel or :uuid for State event.' ), 'You have to specify :channel or :uuid for State event.' ) end end end end
Version data entries
37 entries across 37 versions & 1 rubygems