class EightBall::Providers::Static
A Static
provider will always provide the exact list of {EightBall::Features} that were passed in at construction time.
Attributes
features[R]
Public Class Methods
new(features = [])
click to toggle source
Creates a new instance of a Static
Provider.
@param features [Array<EightBall::Feature>, EightBall::Feature]
The {EightBall::Feature Feature(s)} that this provider will return.
@example
provider = EightBall::Providers::Static.new([ EightBall::Feature.new 'feature1', EightBall::Feature.new 'feature2' ])
# File lib/eight_ball/providers/static.rb, line 19 def initialize(features = []) @features = Array features end