Class: TestTrack::FakeServer
- Inherits:
-
Object
- Object
- TestTrack::FakeServer
- Defined in:
- app/models/test_track/fake_server.rb
Class Method Summary collapse
- .assignments ⇒ Object
- .reset!(seed) ⇒ Object
- .seed ⇒ Object
- .split_details(name) ⇒ Object
- .visitor ⇒ Object
- .visitor_details ⇒ Object
Class Method Details
.assignments ⇒ Object
15 16 17 |
# File 'app/models/test_track/fake_server.rb', line 15 def assignments TestTrack::Fake::Visitor.instance.assignments end |
.reset!(seed) ⇒ Object
19 20 21 22 |
# File 'app/models/test_track/fake_server.rb', line 19 def reset!(seed) TestTrack::Fake::Visitor.reset! @seed = Integer(seed) end |
.seed ⇒ Object
24 25 26 |
# File 'app/models/test_track/fake_server.rb', line 24 def seed @seed || raise('TestTrack::FakeServer seed not set. Call TestTrack::FakeServer.reset!(seed) to set seed.') end |
.split_details(name) ⇒ Object
3 4 5 |
# File 'app/models/test_track/fake_server.rb', line 3 def split_details(name) TestTrack::Fake::SplitDetail.new(name).details end |
.visitor ⇒ Object
7 8 9 |
# File 'app/models/test_track/fake_server.rb', line 7 def visitor TestTrack::Fake::Visitor.instance end |
.visitor_details ⇒ Object
11 12 13 |
# File 'app/models/test_track/fake_server.rb', line 11 def visitor_details TestTrack::Fake::VisitorDetail.instance end |