module Yoda::Server::Providers
Constants
- CLASSES
Public Class Methods
build_provider(method:, notifier:, session:)
click to toggle source
@param method [Symbol] @param notifier [Notifier] @param session [Session] @return [Class<Providers::Base>, nil]
# File lib/yoda/server/providers.rb, line 29 def build_provider(method:, notifier:, session:) find_provider_class(method)&.new(notifier: notifier, session: session) end
find_provider_class(method)
click to toggle source
@param method [Symbol] @return [Class<Providers::Base>, nil]
# File lib/yoda/server/providers.rb, line 35 def find_provider_class(method) CLASSES.find { |provider_class| provider_class.provide?(method) } end