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
avm-0.76.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.69.1 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.75.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.69.0 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.74.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.68.0 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.73.1 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.67.1 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.73.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.67.0 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.72.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.66.0 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.65.1 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.71.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.65.0 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.70.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.64.0 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
avm-0.69.0 lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.63.0 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb
eac_tools-0.62.1 sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb