This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# frozen_string_literal: true
|
||||
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
|
||||
Reference in New Issue
Block a user