Sha256: cf046208573d38b8c12572a542526f1ad660c25f4a8c7d1d8959390154a047eb

Contents?: true

Size: 595 Bytes

Versions: 55

Compression:

Stored size: 595 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(T::Hash[String, String]) }
    def yetto_path_params
      return {} if path_parameters.blank?

      {
        event: path_parameters.fetch(:event, ""),
        record_type: path_parameters.fetch(:record_type, ""),
      }
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
hephaestus-0.8.11 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.10 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.9.2 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.9.1 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.9 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.8 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.7.5 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.7.4 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.7.3 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.7.2 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.7.1 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.7 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.6 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.5 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.4.1 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.4 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.3.4 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.3.3 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.3.2 templates/app/lib/path_parameter/yetto_parameters.rb
hephaestus-0.8.3.1 templates/app/lib/path_parameter/yetto_parameters.rb