Class: Mitake::API::Get Private

Inherits:
Base
  • Object
show all
Defined in:
lib/mitake/api/get.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?

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 Get Request

Since:

  • 0.1.0



16
17
18
19
20
# File 'lib/mitake/api/get.rb', line 16

def request
  return @request unless @request.nil?

  @request ||= Net::HTTP::Get.new(uri)
end

#uriObject

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.

See Also:

Since:

  • 0.1.0



26
27
28
29
30
# File 'lib/mitake/api/get.rb', line 26

def uri
  @uri ||=
    URI("#{Mitake.credential.server}" \
        "#{@path}?#{URI.encode_www_form(params)}")
end