Top Level Namespace

Defined Under Namespace

Modules: EnquiryConsul

Instance Method Summary collapse

Instance Method Details

#diplomatHash

客户端部分,对外暴露接口,功能目前为发送基本请求 目前封装的方法有 get post put 用例 EnquiryConsul.post(‘javaPay’, ‘checkPayment’, data: payment_params, reconnect: 5) TODO: (zhangjiayuan) 目前是 demo,之后会增加更多功能

Parameters:

  • service_name (String)
  • api (String)
  • data (Hash)
  • reconnect (Integer)

Returns:

  • (Hash)


11
# File 'lib/enquiry-consul.rb', line 11

require 'diplomat'