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

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

Defined Under Namespace

Classes: DefaultValue, InheritedValue, UrlEntryValue

Instance Method Summary collapse

Instance Method Details

#componentString

Returns:

  • (String)


37
38
39
# File 'lib/avm/entries/base/uri_component_entry_value.rb', line 37

def component
  component_entry_path.last
end

#id_entry_pathEacConfig::EntryPath



22
23
24
# File 'lib/avm/entries/base/uri_component_entry_value.rb', line 22

def id_entry_path
  root_entry_path + %w[id]
end

#resultString?

Returns:

  • (String, nil)


27
28
29
# File 'lib/avm/entries/base/uri_component_entry_value.rb', line 27

def result
  url_entry_value || inherited_value || default_value
end

#root_entry_pathEacConfig::EntryPath



32
33
34
# File 'lib/avm/entries/base/uri_component_entry_value.rb', line 32

def root_entry_path
  component_entry_path[0..-2]
end