Class: Mitake::API::Post Private

Inherits:
Base
  • Object
show all
Defined in:
lib/mitake/api/post.rb

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

Since:

  • 0.1.0

Instance Method Summary collapse

Methods inherited from Base

#execute, #initialize, #params, #ssl?, #uri

Constructor Details

This class inherits a constructor from Mitake::API::Base

Instance Method Details

#requestObject

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

Since:

  • 0.1.0



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