class Yoda::Server::Providers::Base
@abstract
Attributes
notifier[R]
@return [Notifier]
session[R]
@return [Session]
Public Class Methods
new(notifier:, session:)
click to toggle source
@param notifier [Notifier] @param session [Notifier]
# File lib/yoda/server/providers/base.rb, line 27 def initialize(notifier:, session:) @notifier = notifier @session = session end
provide?(method)
click to toggle source
@param method [Symbol]
# File lib/yoda/server/providers/base.rb, line 14 def provide?(method) provider_method == method end
provider_method()
click to toggle source
@abstract @return [Symbol]
# File lib/yoda/server/providers/base.rb, line 9 def provider_method fail NotImplementedError end
Public Instance Methods
provide(params)
click to toggle source
@abstract @param params [Hash]
# File lib/yoda/server/providers/base.rb, line 34 def provide(params) fail NotImplementedError end
timeout()
click to toggle source
@return [Integer, nil] Seconds to timeout the task. if nil, the task does not timeout.
# File lib/yoda/server/providers/base.rb, line 39 def timeout nil end