Sha256: ea6334f8fb7dc0adf7df893e37b579d014826789ea0d6842f9948cc4abfce1bc
Contents?: true
Size: 629 Bytes
Versions: 3
Compression:
Stored size: 629 Bytes
Contents
# frozen_string_literal: true require 'mitake/api/base' module Mitake module API # Create HTTP Get Request # # @since 0.1.0 # @api private class Get < Base # Create HTTP Get Request # # @since 0.1.0 # @api private def request return @request unless @request.nil? @request ||= Net::HTTP::Get.new(uri) end # @see Mitake::API::Base#uri # # @since 0.1.0 # @api private def uri @uri ||= URI("#{Mitake.credential.server}" \ "#{@path}?#{URI.encode_www_form(params)}") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mitake-0.1.2 | lib/mitake/api/get.rb |
mitake-0.1.1 | lib/mitake/api/get.rb |
mitake-0.1.0 | lib/mitake/api/get.rb |