Class: Faraday::Utils::ParamsHash

### Home Classes Methods

### In Files

- lib/faraday/utils.rb

### Parent

Hash

### Methods

- #[]
- #[]=
- #delete
- #has_key?
- #include?
- #key?
- #member?
- #merge
- #merge!
- #merge_query
- #replace
- #to_query
- #update

### Class/Module Index

Quicksearch

- Faraday
- Faraday::Adapter
- Faraday::Adapter::EMHttp
- Faraday::Adapter::EMHttp::Manager
- Faraday::Adapter::EMHttp::Options
- Faraday::Adapter::EMSynchrony
- Faraday::Adapter::EMSynchrony::ParallelManager
- Faraday::Adapter::Excon
- Faraday::Adapter::NetHttp
- Faraday::Adapter::NetHttpPersistent
- Faraday::Adapter::Parallelism
- Faraday::Adapter::Patron
- Faraday::Adapter::Rack
- Faraday::Adapter::Test
- Faraday::Adapter::Test::Stub
- Faraday::Adapter::Test::Stubs
- Faraday::Adapter::Test::Stubs::NotFound
- Faraday::Adapter::Typhoeus
- Faraday::AutoloadHelper
- Faraday::Builder
- Faraday::Builder::Handler
- Faraday::Builder::StackLocked
- Faraday::CompositeReadIO
- Faraday::Connection
- Faraday::Error
- Faraday::Error::ClientError
- Faraday::Error::ConnectionFailed
- Faraday::Error::MissingDependency
- Faraday::Error::ParsingError
- Faraday::Error::ResourceNotFound
- Faraday::Error::TimeoutError
- Faraday::Middleware
- Faraday::MiddlewareRegistry
- Faraday::Request
- Faraday::Request::Authorization
- Faraday::Request::BasicAuthentication
- Faraday::Request::Multipart
- Faraday::Request::Retry
- Faraday::Request::TokenAuthentication
- Faraday::Request::UrlEncoded
- Faraday::Response
- Faraday::Response::Logger
- Faraday::Response::Middleware
- Faraday::Response::RaiseError
- Faraday::Utils
- Faraday::Utils::Headers
- Faraday::Utils::ParamsHash
- Object

No matching classes.

# Faraday::Utils::ParamsHash

hash with stringified keys

### Public Instance Methods

[](key) click to toggle source

    # File lib/faraday/utils.rb, line 90
    def [](key)
      super(convert_key(key))
    end

[]=(key, value) click to toggle source

    # File lib/faraday/utils.rb, line 94
    def []=(key, value)
      super(convert_key(key), value)
    end

delete(key) click to toggle source

    # File lib/faraday/utils.rb, line 98
    def delete(key)
      super(convert_key(key))
    end

has_key?(key) click to toggle source
Alias for: include?
include?(key) click to toggle source

    # File lib/faraday/utils.rb, line 102
    def include?(key)
      super(convert_key(key))
    end

Also aliased as: has_key?, member?, key?
key?(key) click to toggle source
Alias for: include?
member?(key) click to toggle source
Alias for: include?
merge(params) click to toggle source

    # File lib/faraday/utils.rb, line 118
    def merge(params)
      dup.update(params)
    end

merge!(params) click to toggle source
Alias for: update
merge_query(query) click to toggle source

    # File lib/faraday/utils.rb, line 127
    def merge_query(query)
      if query && !query.empty?
        update Utils.parse_nested_query(query)
      end
      self
    end

replace(other) click to toggle source

    # File lib/faraday/utils.rb, line 122
    def replace(other)
      clear
      update(other)
    end

to_query() click to toggle source

    # File lib/faraday/utils.rb, line 134
    def to_query
      Utils.build_nested_query(self)
    end

update(params) click to toggle source

    # File lib/faraday/utils.rb, line 110
    def update(params)
      params.each do |key, value|
        self[key] = value
      end
      self
    end

Also aliased as: merge!

[Validate]

Generated with the Darkfish Rdoc Generator 2.