class Faraday::Utils::ParamsHash

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/faraday/utils/params_hash.rbs

class Faraday::Utils::ParamsHash < Faraday::Utils::Hash
  def convert_key: (String key) -> untyped
  def update: (Hash params) -> untyped
end

A hash with stringified keys.

def [](key)

def [](key)
  super(convert_key(key))
end

def []=(key, value)

def []=(key, value)
  super(convert_key(key), value)
end

def convert_key(key)

Experimental RBS support (using type sampling data from the type_fusion project).

def convert_key: (String key) -> untyped

This signature was generated using 1 sample from 1 application.

def convert_key(key)
  key.to_s
end

def delete(key)

def delete(key)
  super(convert_key(key))
end

def include?(key)

def include?(key)
  super(convert_key(key))
end

def merge(params)

def merge(params)
  dup.update(params)
end

def merge_query(query, encoder = nil)

def merge_query(query, encoder = nil)
  return self unless query && !query.empty?
  update((encoder || Utils.default_params_encoder).decode(query))
end

def replace(other)

def replace(other)
  clear
  update(other)
end

def to_query(encoder = nil)

def to_query(encoder = nil)
  (encoder || Utils.default_params_encoder).encode(self)
end

def update(params)

Experimental RBS support (using type sampling data from the type_fusion project).

def update: (response_type | String | client_id | String | redirect_uri | String | state | String | prompt | String | scope | String | include_granted_scopes | String | access_type | String params) -> untyped

This signature was generated using 1 sample from 1 application.

def update(params)
  params.each do |key, value|
    self[key] = value
  end
  self
end