Class: Ethon::Easy::Params Private

Inherits:
Object
  • Object
show all
Includes:
Queryable, Util
Defined in:
lib/ethon/easy/params.rb

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.

This class represents HTTP request parameters.

Instance Method Summary collapse

Methods included from Queryable

#build_query_pairs, #empty?, #file_info, included, #query_pairs, #to_s

Methods included from Util

#escape_zero_byte

Constructor Details

#initialize(easy, params) ⇒ Params

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 a new Params.

Examples:

Create a new Params.

Params.new({})

Parameters:

  • params (Hash)

    The params to use.


22
23
24
25
# File 'lib/ethon/easy/params.rb', line 22

def initialize(easy, params)
  @easy = easy
  @params = params || {}
end