Class: KHL::HTTP::Gateway

Inherits:
Base
  • Object
show all
Defined in:
lib/khl/http/gateway.rb

Overview

Constant Summary

Constants inherited from Base

Base::API_VERSION, Base::BASE_URL, Base::END_POINT

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Base

#get, #initialize, #post, #post_file

Constructor Details

This class inherits a constructor from KHL::HTTP::Base

Instance Method Details

#index(options = {}) ⇒ KHL::HTTP::Response

获取网关连接地址

Parameters:

  • options (Hash) (defaults to: {})

    可选参数

Options Hash (options):

  • :compress (Integer)

    下发数据是否压缩,默认为 1,代表压缩

Returns:



14
15
16
# File 'lib/khl/http/gateway.rb', line 14

def index(options = {})
  get(options)
end