Class: RongCloud::Http

Inherits:
Object
  • Object
show all
Defined in:
lib/rongcloud/http.rb

Instance Method Summary collapse

Constructor Details

#initialize(client, options) ⇒ Http

Returns a new instance of Http.



3
4
5
6
7
# File 'lib/rongcloud/http.rb', line 3

def initialize(client, options)
  @client = client
  @host = options.fetch(:host)
  @options = options.fetch(:options)
end

Instance Method Details

#post(path, options) ⇒ Object



9
10
11
# File 'lib/rongcloud/http.rb', line 9

def post(path, options)
  request(:post, path, options)
end