Sha256: 1615fd12e5024136a7d61b1d4a33935a19bd7f248537b7d0f67bb0c5f721f4b5

Contents?: true

Size: 582 Bytes

Versions: 3

Compression:

Stored size: 582 Bytes

Contents

# frozen_string_literal: true

require 'net/https'
module SimpleHelper
  module Config
    class << self
      def supported_methods
        {
          'get'    => Net::HTTP::Get,
          'post'   => Net::HTTP::Post,
          'patch'  => Net::HTTP::Patch,
          'put'    => Net::HTTP::Put,
          'delete' => Net::HTTP::Delete
        }
      end

      def supported_schemes
        %w[http https]
      end

      def reference
        %w[scheme host port request_uri path query]
      end

      def supported_format
        %w[json plain]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_request-0.1.5 lib/simple_helper/config.rb
simple_request-0.1.4 lib/simple_helper/config.rb
simple_request-0.1.3 lib/simple_helper/config.rb