Class: TestTrack::Fake::VisitorDetail

Inherits:
Object
  • Object
show all
Defined in:
app/models/test_track/fake/visitor_detail.rb

Class Method Summary collapse

Class Method Details

.instanceObject

rubocop:disable Metrics/MethodLength



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'app/models/test_track/fake/visitor_detail.rb', line 3

def self.instance
  {
    assignment_details: [
      {
        split_name: 'really_cool_feature',
        split_location: 'Home page',
        variant_name: 'Enabled',
        variant_description: 'The feature is enabled',
        assigned_at: '2017-04-11T00:00:00Z'
      },
      {
        split_name: 'green_button',
        split_location: 'Sign up',
        variant_name: 'Button green',
        variant_description: 'That big button will be green',
        assigned_at: '2017-04-10T00:00:00Z'
      }
    ]
  }
end