Class: SplitIoClient::LocalhostSplitFactory
- Inherits:
-
Object
- Object
- SplitIoClient::LocalhostSplitFactory
- Defined in:
- lib/splitclient-rb/localhost_split_factory.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#manager ⇒ Object
readonly
Returns the value of attribute manager.
Instance Method Summary collapse
-
#initialize(splits_file, reload_rate = nil) ⇒ LocalhostSplitFactory
constructor
A new instance of LocalhostSplitFactory.
Constructor Details
#initialize(splits_file, reload_rate = nil) ⇒ LocalhostSplitFactory
Returns a new instance of LocalhostSplitFactory.
5 6 7 8 9 10 11 |
# File 'lib/splitclient-rb/localhost_split_factory.rb', line 5 def initialize(splits_file, reload_rate = nil) @splits_file = splits_file @reload_rate = reload_rate @client = LocalhostSplitClient.new(@splits_file, @reload_rate) @manager = LocalhostSplitManager.new(@splits_file, @reload_rate) end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/splitclient-rb/localhost_split_factory.rb', line 3 def client @client end |
#manager ⇒ Object (readonly)
Returns the value of attribute manager.
3 4 5 |
# File 'lib/splitclient-rb/localhost_split_factory.rb', line 3 def manager @manager end |