Class: VpsbClient::Api::PostRequest
- Defined in:
- lib/vpsb_client/api/request.rb
Direct Known Subclasses
Instance Method Summary collapse
- #content_type ⇒ Object
-
#initialize(http_client) ⇒ PostRequest
constructor
A new instance of PostRequest.
- #run ⇒ Object
Methods inherited from Request
#accept, #post_params, #put_params, #query_params
Constructor Details
#initialize(http_client) ⇒ PostRequest
Returns a new instance of PostRequest.
33 34 35 |
# File 'lib/vpsb_client/api/request.rb', line 33 def initialize(http_client) super(http_client) end |
Instance Method Details
#content_type ⇒ Object
41 42 43 |
# File 'lib/vpsb_client/api/request.rb', line 41 def content_type 'application/x-www-form-urlencoded' end |
#run ⇒ Object
37 38 39 |
# File 'lib/vpsb_client/api/request.rb', line 37 def run @http_client.post(self) end |