Sha256: 27ce21f0098330335b9ff1ac56d2b7eb1ae4d98a5589dff5aac1439a93b805d5

Contents?: true

Size: 658 Bytes

Versions: 2

Compression:

Stored size: 658 Bytes

Contents

module Hyperdrive
  module Values
    def self.request_methods
      %w(GET HEAD OPTIONS POST PUT PATCH DELETE).freeze
    end

    def self.request_methods_symbol_map
      {
        get:     'GET',
        head:    'HEAD',
        options: 'OPTIONS',
        post:    'POST',
        put:     'PUT',
        patch:   'PATCH',
        delete:  'DELETE'
      }.freeze
    end

    def self.request_methods_string_map
      {
        'GET'     => :get,
        'HEAD'    => :head,
        'OPTIONS' => :options,
        'POST'    => :post,
        'PUT'     => :put,
        'PATCH'   => :patch,
        'DELETE'  => :delete
      }.freeze
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyperdrive-0.0.5 lib/hyperdrive/values.rb
hyperdrive-0.0.4 lib/hyperdrive/values.rb