Class: Avm::Entries::AutoValues::UriEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/entries/auto_values/uri_entry.rb

Instance Method Summary collapse

Instance Method Details

#found?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/avm/entries/auto_values/uri_entry.rb', line 12

def found?
  value.present?
end

#valueObject



16
17
18
19
20
# File 'lib/avm/entries/auto_values/uri_entry.rb', line 16

def value
  ::Avm::Entries::UriBuilder.from_all_fields do |field_name|
    entries_provider.entry([suffix, field_name]).optional_value
  end.to_uri.to_s
end