Sha256: 21543f0fc829482ae50b3f66cb0a756a155e4e9fe95b85a3944feddfc8ff2d44

Contents?: true

Size: 572 Bytes

Versions: 52

Compression:

Stored size: 572 Bytes

Contents

require 'ethon/easy/util'
require 'ethon/easy/queryable'

module Ethon
  class Easy

    # This class represents HTTP request parameters.
    #
    # @api private
    class Params
      include Ethon::Easy::Util
      include Ethon::Easy::Queryable

      # Create a new Params.
      #
      # @example Create a new Params.
      #   Params.new({})
      #
      # @param [ Hash ] params The params to use.
      #
      # @return [ Params ] A new Params.
      def initialize(easy, params)
        @easy = easy
        @params = params || {}
      end
    end
  end
end

Version data entries

52 entries across 51 versions & 8 rubygems

Version Path
ethon-0.8.0 lib/ethon/easy/params.rb
ethon-0.7.4 lib/ethon/easy/params.rb
ethon-0.7.3 lib/ethon/easy/params.rb
ethon-0.7.2 lib/ethon/easy/params.rb
ethon-0.7.1 lib/ethon/easy/params.rb
ethon-0.7.0 lib/ethon/easy/params.rb
ethon-0.6.3 lib/ethon/easy/params.rb
ethon-0.6.2 lib/ethon/easy/params.rb
ethon-0.6.1 lib/ethon/easy/params.rb
ethon-0.6.0 lib/ethon/easy/params.rb
ethon-0.5.12 lib/ethon/easy/params.rb
ethon-0.5.11 lib/ethon/easy/params.rb