Class: Mitake::API::Post Private
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Create HTTP Get Request
Instance Method Summary collapse
-
#request ⇒ Object
private
Create HTTP Post Request.
Methods inherited from Base
#execute, #initialize, #params, #ssl?, #uri
Constructor Details
This class inherits a constructor from Mitake::API::Base
Instance Method Details
#request ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create HTTP Post Request
16 17 18 19 20 21 22 |
# File 'lib/mitake/api/post.rb', line 16 def request return @request unless @request.nil? @request ||= Net::HTTP::Post.new(uri) @request.body = URI.encode_www_form(params) @request end |