Sha256: e0615b7881781b92a5e30978937bba2ad4e065d0efcce5048ab63c71c2e69090

Contents?: true

Size: 336 Bytes

Versions: 4

Compression:

Stored size: 336 Bytes

Contents

def get(path = [], options = {}, user = "api_key", pass = "token")
  path = parse_path(path)
  options = parse_options(options)
  path = "#{path}?#{options}" unless options.nil?
  
  http = Net::HTTP.new("test.myshopify.com", 443)
  http.use_ssl = true
  req = Net::HTTP::Get.new path
  req.basic_auth user, pass
  http.request req
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
shopify-mock-new-0.1 spec/support/http_support.rb
shopify-mock-0.1.2 spec/support/http_support.rb
shopify-mock-0.1.1 spec/support/http_support.rb
shopify-mock-0.1.0 spec/support/http_support.rb