Class: LeanCloud::LeanHTTP

Inherits:
LeanObject show all
Defined in:
lib/leancloud/http/lean_http.rb

Overview

LeanCloud HTTP manager

Direct Known Subclasses

SymbolUploader

Constant Summary collapse

DOMAINS =
{
  "cn" => 'api.leancloud.cn',
  "us" => 'avoscloud.us'
}
BASE_URL_FMT =
'https://%{domain}/1.1/'

Instance Method Summary collapse

Methods inherited from LeanObject

#exit_with_error, #exit_with_info, #show_error, #show_message, #show_success

Constructor Details

#initialize(opts = {}) ⇒ LeanHTTP

Returns a new instance of LeanHTTP.



15
16
17
# File 'lib/leancloud/http/lean_http.rb', line 15

def initialize(opts = {})
  @options = opts
end