Class: Mitake::API::Get 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 Get Request.
- #uri ⇒ Object private
Methods inherited from Base
#execute, #initialize, #params, #ssl?
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 Get Request
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 |
#uri ⇒ 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.
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 |