Sha256: b17743c955d739d44bea76a565de7de0528da84232e59ebe63c2fc3f42bfa8a1

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

Stored size: 666 Bytes

Contents

require "garnet_client/version"
require "garnet_client/utils/http_request"
require 'HTTParty'
require 'json'

module GarnetClient
  @version = GarnetClient::VERSION
  @content_type = 'application/json'
  @response_headers = {}

  class<< self
    # mer_id 商户账号
    # mer_key 加密key
    attr_accessor :tenant_id, :debug_mode
    attr_reader :api_base_url

    def api_base_url=(url)
      @api_base_url = url
    end

    def response_headers
      params = {"Content-Type" => @content_type,
                "tenant-id" => @tenant_id}
      response_headers = params
      response_headers
    end


    def debug_mode?
      @debug_mode
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
garnet_client-0.1.1 lib/garnet_client.rb