Class: Avm::Entries::Base::UriComponentEntryValue
- Inherits:
-
Object
- Object
- Avm::Entries::Base::UriComponentEntryValue
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
#component ⇒ String
38
39
40
|
# File 'lib/avm/entries/base/uri_component_entry_value.rb', line 38
def component
component_entry_path.last
end
|
#id_entry_path ⇒ EacConfig::EntryPath
23
24
25
|
# File 'lib/avm/entries/base/uri_component_entry_value.rb', line 23
def id_entry_path
root_entry_path + %w[id]
end
|
#result ⇒ String?
28
29
30
|
# File 'lib/avm/entries/base/uri_component_entry_value.rb', line 28
def result
url_entry_value || inherited_value || default_value
end
|
#root_entry_path ⇒ EacConfig::EntryPath
33
34
35
|
# File 'lib/avm/entries/base/uri_component_entry_value.rb', line 33
def root_entry_path
component_entry_path[0..-2]
end
|