lib/hamburglar/gateways/base.rb in hamburglar-0.1.0 vs lib/hamburglar/gateways/base.rb in hamburglar-0.1.1
- old
+ new
@@ -6,9 +6,11 @@
# Hamburglar::Gateways::Base is the main class that handles sending API
# requests to upstream providers. All other gateways should inherit from
# this class
class Base
+ # A regex for matching URLs with http or https
+ # This will be used to verify API urls
URL_REGEX = /https?:\/\/[\S]+/
# The parameters for the API request
attr_reader :params