Files
sure/app/models/security/combobox_option.rb
Juan José Mata 54bc37a651 Remove Synth Finance references (#47)
* Remove Synth Finance integration

* Linter noise

* Fix failing (old) test, use it for Twelve Data

---------

Signed-off-by: Juan José Mata <juanjo.mata@gmail.com>
2025-08-02 00:28:55 +02:00

14 lines
292 B
Ruby

class Security::ComboboxOption
include ActiveModel::Model
attr_accessor :symbol, :name, :logo_url, :exchange_operating_mic, :country_code
def id
"#{symbol}|#{exchange_operating_mic}"
end
def to_combobox_display
"#{symbol} - #{name} (#{exchange_operating_mic})"
end
end