Sha256: 67f3e3b4b044b75703b87c9e2b9ddeef3025818dbd78a8c715904befefd82078
Contents?: true
Size: 379 Bytes
Versions: 3
Compression:
Stored size: 379 Bytes
Contents
def get(path = [], options = {}, user = SHOPIFY_MOCK_SHOP[:api_key], pass = SHOPIFY_MOCK_SHOP[:secret]) path = parse_path(path) options = parse_options(options) path = "#{path}?#{options}" unless options.nil? http = Net::HTTP.new(SHOPIFY_MOCK_SHOP[:domain], 443) http.use_ssl = true req = Net::HTTP::Get.new path req.basic_auth user, pass http.request req end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shopify-mock-0.0.3 | spec/support/http_support.rb |
shopify-mock-0.0.2 | spec/support/http_support.rb |
shopify-mock-0.0.1 | spec/support/http_support.rb |