Sha256: c9dac50963a78a30a892aa76a42a7f87fab019dabdddea5d81642b89affadfb2

Contents?: true

Size: 698 Bytes

Versions: 3

Compression:

Stored size: 698 Bytes

Contents

require "garnet_client/version"
require "garnet_client/utils/http_request"
require "garnet_client/service"
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

3 entries across 3 versions & 1 rubygems

Version Path
garnet_client-0.1.4 lib/garnet_client.rb
garnet_client-0.1.3 lib/garnet_client.rb
garnet_client-0.1.2 lib/garnet_client.rb