Sha256: 5e2a772ff16e1140663e54e6b77678baea24d08bef04ff76f90edd1436416361

Contents?: true

Size: 535 Bytes

Versions: 8

Compression:

Stored size: 535 Bytes

Contents

# typed: false
# frozen_string_literal: true

module PathParameter
  module YettoParameters
    extend T::Sig

    sig { returns(String) }
    def pparam_yetto_event
      yetto_path_params.fetch(:event, "")
    end

    sig { returns(String) }
    def pparam_yetto_record_type
      yetto_path_params.fetch(:record_type, "")
    end

    sig { returns(ActionController::Parameters) }
    def yetto_path_params
      return ActionController::Parameters.new if params.blank?

      params.permit(:event, :record_type)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hephaestus-0.3.1 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.2.3 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.2.2 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.1.3 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.1.2 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.1.1 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.0.2 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.0.1 templates/app/lib/path_parameter/yetto_parameters.rb