Sha256: 60817cfe63a85182cf278c040bf9cb50255a95403e6ccd6d7d806f62a12f925e

Contents?: true

Size: 912 Bytes

Versions: 102

Compression:

Stored size: 912 Bytes

Contents

# frozen_string_literal: true

require 'avm/entries/base/uri_components_entries_values/generic_component'
require 'eac_ruby_utils/core_ext'

module Avm
  module Entries
    module Base
      class UriComponentsEntriesValues
        class UrlComponent < ::Avm::Entries::Base::UriComponentsEntriesValues::GenericComponent
          def setup
            outer_self = self
            define_auto_method do
              inherited_entry_value(outer_self.id_component.entry_key_path.to_string,
                                    outer_self.entry_key_path.to_string) ||
                outer_self.auto_install_url_by_parts(self)
            end
          end

          def auto_install_url_by_parts(entries_provider)
            require 'avm/entries/auto_values/uri_entry'
            ::Avm::Entries::AutoValues::UriEntry.new(entries_provider, 'install').value
          end
        end
      end
    end
  end
end

Version data entries

102 entries across 102 versions & 2 rubygems

Version Path
eac_tools-0.55.6 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.64.1 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.55.5 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.64.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.55.4 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.63.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.55.3 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.55.2 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.55.1 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.62.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.55.0 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.61.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.54.0 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.53.0 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.52.0 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.60.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.51.0 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.59.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.50.0 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.58.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb