Class: SplitIoClient::LocalhostSplitFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/splitclient-rb/localhost_split_factory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (readonly)

Returns the value of attribute client.



3
4
5
# File 'lib/splitclient-rb/localhost_split_factory.rb', line 3

def client
  @client
end

#managerObject (readonly)

Returns the value of attribute manager.



3
4
5
# File 'lib/splitclient-rb/localhost_split_factory.rb', line 3

def manager
  @manager
end