mirror of
https://github.com/we-promise/sure.git
synced 2026-04-10 15:54:48 +00:00
14 lines
355 B
Ruby
14 lines
355 B
Ruby
class Security::SynthComboboxOption
|
|
include ActiveModel::Model
|
|
|
|
attr_accessor :symbol, :name, :logo_url, :exchange_operating_mic
|
|
|
|
def id
|
|
"#{symbol}|#{exchange_operating_mic}" # submitted by combobox as value
|
|
end
|
|
|
|
def to_combobox_display
|
|
"#{symbol} - #{name} (#{exchange_operating_mic})" # shown in combobox input when selected
|
|
end
|
|
end
|