Sha256: 5770807afd5aff1b667ff8359a0cfc6904d85699a9865201a414d5be65019439

Contents?: true

Size: 403 Bytes

Versions: 13

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true
module Rack::App::InstanceMethods::Params

  E = ::Rack::App::Constants::ENV

  def params
    request.env[E::PARAMS].to_hash
  end

  def validated_params
    request.env[E::PARAMS].validated_params
  end

  def path_segments_params
    request.env[E::PARAMS].path_segments_params
  end

  def query_string_params
    request.env[E::PARAMS].query_string_params
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rack-app-6.8.0 lib/rack/app/instance_methods/params.rb
rack-app-6.7.1 lib/rack/app/instance_methods/params.rb
rack-app-6.7.0 lib/rack/app/instance_methods/params.rb
rack-app-6.6.0 lib/rack/app/instance_methods/params.rb
rack-app-6.5.0 lib/rack/app/instance_methods/params.rb
rack-app-6.4.1 lib/rack/app/instance_methods/params.rb
rack-app-6.4.0 lib/rack/app/instance_methods/params.rb
rack-app-6.3.3 lib/rack/app/instance_methods/params.rb
rack-app-6.3.2 lib/rack/app/instance_methods/params.rb
rack-app-6.3.1 lib/rack/app/instance_methods/params.rb
rack-app-6.3.0 lib/rack/app/instance_methods/params.rb
rack-app-6.2.0 lib/rack/app/instance_methods/params.rb
rack-app-6.1.0 lib/rack/app/instance_methods/params.rb