Sha256: f96d34d57f78289d254f679557021f432c75ca8d212f1af51993032547ab9f4d

Contents?: true

Size: 499 Bytes

Versions: 15

Compression:

Stored size: 499 Bytes

Contents

# frozen_string_literal: true

require 'avm/entries/uri_builder'
require 'eac_ruby_utils/core_ext'

module Avm
  module Entries
    module AutoValues
      class UriEntry
        common_constructor :entries_provider, :suffix

        def found?
          value.present?
        end

        def value
          ::Avm::Entries::UriBuilder.from_all_fields do |field_name|
            entries_provider.entry([suffix, field_name]).value
          end.to_uri.to_s
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
avm-0.39.0 lib/avm/entries/auto_values/uri_entry.rb
eac_tools-0.25.0 sub/avm/lib/avm/entries/auto_values/uri_entry.rb
avm-0.38.0 lib/avm/entries/auto_values/uri_entry.rb
eac_tools-0.24.1 sub/avm/lib/avm/entries/auto_values/uri_entry.rb
avm-0.37.0 lib/avm/entries/auto_values/uri_entry.rb
eac_tools-0.24.0 sub/avm/lib/avm/entries/auto_values/uri_entry.rb
avm-0.36.0 lib/avm/entries/auto_values/uri_entry.rb
eac_tools-0.23.0 sub/avm/lib/avm/entries/auto_values/uri_entry.rb
avm-0.35.1 lib/avm/entries/auto_values/uri_entry.rb
eac_tools-0.22.0 sub/avm/lib/avm/entries/auto_values/uri_entry.rb
eac_tools-0.21.0 sub/avm/lib/avm/entries/auto_values/uri_entry.rb
eac_tools-0.20.0 sub/avm/lib/avm/entries/auto_values/uri_entry.rb
eac_tools-0.19.0 sub/avm/lib/avm/entries/auto_values/uri_entry.rb
avm-0.35.0 lib/avm/entries/auto_values/uri_entry.rb
eac_tools-0.18.0 sub/avm/lib/avm/entries/auto_values/uri_entry.rb