Class: VpsbClient::Api::PostRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/vpsb_client/api/request.rb

Instance Method Summary collapse

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_typeObject



41
42
43
# File 'lib/vpsb_client/api/request.rb', line 41

def content_type
  'application/x-www-form-urlencoded'
end

#runObject



37
38
39
# File 'lib/vpsb_client/api/request.rb', line 37

def run
  @http_client.post(self)
end