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/concerns/providable.rb

18 lines
418 B
Ruby
Raw Normal View History

# `Providable` serves as an extension point for integrating multiple providers.
# For an example of a multi-provider, multi-concept implementation,
# see: https://github.com/maybe-finance/maybe/pull/561
module Providable
extend ActiveSupport::Concern
class_methods do
def exchange_rates_provider
Provider::Synth.new
end
def git_repository_provider
Provider::Github.new
end
end
end