Class: Avm::Entries::Base::UriComponentsEntriesValues

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/entries/base/uri_components_entries_values.rb,
lib/avm/entries/base/uri_components_entries_values/url_component.rb,
lib/avm/entries/base/uri_components_entries_values/path_component.rb,
lib/avm/entries/base/uri_components_entries_values/component_factory.rb,
lib/avm/entries/base/uri_components_entries_values/generic_component.rb

Defined Under Namespace

Classes: ComponentFactory, GenericComponent, PathComponent, UrlComponent

Constant Summary collapse

ENTRIES_FIELDS =
::Avm::Entries::UriBuilder::ENTRIES_FIELDS + %w[url]

Instance Method Summary collapse

Instance Method Details

#fieldsObject



15
16
17
# File 'lib/avm/entries/base/uri_components_entries_values.rb', line 15

def fields
  ENTRIES_FIELDS + extra_fields
end

#resultObject



19
20
21
# File 'lib/avm/entries/base/uri_components_entries_values.rb', line 19

def result
  fields.map { |field| component_factory(field).setup }
end