30 lines
602 B
Ruby
30 lines
602 B
Ruby
# 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
|