Sha256: dd57b47357bcdda6b4dab9ce714dd9547381b4a5909501046043655402a93d52
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
require "garnet_client/version" require "qarnet_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.0 | lib/garnet_client.rb |