1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-21 22:29:38 +02:00
Maybe/app/models/security/synth_combobox_option.rb
2025-03-28 17:34:29 -04:00

13 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