Class: MetadataPresenter::AutocompleteItem
- Defined in:
- app/models/metadata_presenter/autocomplete_item.rb
Instance Attribute Summary
Attributes inherited from 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
#id ⇒ Object
2 3 4 |
# File 'app/models/metadata_presenter/autocomplete_item.rb', line 2 def id { text:, value: }.to_json end |
#name ⇒ Object
6 7 8 |
# File 'app/models/metadata_presenter/autocomplete_item.rb', line 6 def name text end |