mirror of
https://github.com/we-promise/sure.git
synced 2026-04-08 06:44:52 +00:00
* 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>
14 lines
292 B
Ruby
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
|