Sha256: e297ccd315fe88b098090253f2944be8d52522025494ccd2ed41c4bb08c10edb
Contents?: true
Size: 663 Bytes
Versions: 37
Compression:
Stored size: 663 Bytes
Contents
# Toplevel Pubnub module. module Pubnub # Validator module that holds all validators modules module Validator # Validator for History event module History include CommonValidator def validate! return if @skip_validate validate_channel! end private def validate_channel! return unless @channel.size > 1 raise( ArgumentError.new( object: self, message: 'Invalid :channel. You can run History for a single channel at once.' ), 'Invalid :channel. You can run History for a single channel at once.' ) end end end end
Version data entries
37 entries across 37 versions & 1 rubygems