Sha256: f70e84de6bbdafa3e42702c241d829fc10df77ca5f24695486838fd719b6566a
Contents?: true
Size: 301 Bytes
Versions: 1
Compression:
Stored size: 301 Bytes
Contents
module Crawler module Validations VALID_PROTOCOLS = ['http', 'https'].freeze # Validates protocol is http or https # def validate_protocol raise InvalidProtocolError.new('Please specify either http or https') unless VALID_PROTOCOLS.include? base_uri.scheme end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-crawler-0.0.1 | lib/crawler/validations.rb |