Class: MetadataPresenter::AutocompleteItem

Inherits:
Metadata
  • Object
show all
Defined in:
app/models/metadata_presenter/autocomplete_item.rb

Instance Attribute Summary

Attributes inherited from Metadata

#metadata

Instance Method Summary collapse

Methods inherited from Metadata

#==, #editor?, #initialize, #method_missing, #respond_to_missing?, #to_json, #type, #uuid

Constructor Details

This class inherits a constructor from MetadataPresenter::Metadata

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class MetadataPresenter::Metadata

Instance Method Details

#idObject



2
3
4
# File 'app/models/metadata_presenter/autocomplete_item.rb', line 2

def id
  { text:, value: }.to_json
end

#nameObject



6
7
8
# File 'app/models/metadata_presenter/autocomplete_item.rb', line 6

def name
  text
end