Class: RongCloud::Http
- Inherits:
-
Object
- Object
- RongCloud::Http
- Defined in:
- lib/rongcloud/http.rb
Instance Method Summary collapse
-
#initialize(client, options) ⇒ Http
constructor
A new instance of Http.
- #post(path, options) ⇒ Object
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, ) @client = client @host = .fetch(:host) @options = .fetch(:options) end |
Instance Method Details
#post(path, options) ⇒ Object
9 10 11 |
# File 'lib/rongcloud/http.rb', line 9 def post(path, ) request(:post, path, ) end |