Class: Avm::Entries::Base::UriComponentEntryValue::UrlEntryValue

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/entries/base/uri_component_entry_value/url_entry_value.rb

Instance Method Summary collapse

Instance Method Details

#resultObject



16
17
18
19
20
21
# File 'lib/avm/entries/base/uri_component_entry_value/url_entry_value.rb', line 16

def result
  return unless url_entry.context_found?

  ::Avm::Entries::UriBuilder.from_source(url_entry.value.to_uri)
    .avm_field_get(component)
end

#url_entryAvm::Entries::Entry

Returns:



24
25
26
# File 'lib/avm/entries/base/uri_component_entry_value/url_entry_value.rb', line 24

def url_entry
  entries_provider.entry((root_entry_path + %w[url]).to_string)
end