Class: Optimizely::EventBatch::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/optimizely/event/entity/event_batch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#account_idObject (readonly)

Returns the value of attribute account_id.



37
38
39
# File 'lib/optimizely/event/entity/event_batch.rb', line 37

def 
  @account_id
end

#anonymize_ipObject (readonly)

Returns the value of attribute anonymize_ip.



37
38
39
# File 'lib/optimizely/event/entity/event_batch.rb', line 37

def anonymize_ip
  @anonymize_ip
end

#client_nameObject (readonly)

Returns the value of attribute client_name.



37
38
39
# File 'lib/optimizely/event/entity/event_batch.rb', line 37

def client_name
  @client_name
end

#client_versionObject (readonly)

Returns the value of attribute client_version.



37
38
39
# File 'lib/optimizely/event/entity/event_batch.rb', line 37

def client_version
  @client_version
end

#enrich_decisionsObject (readonly)

Returns the value of attribute enrich_decisions.



37
38
39
# File 'lib/optimizely/event/entity/event_batch.rb', line 37

def enrich_decisions
  @enrich_decisions
end

#project_idObject (readonly)

Returns the value of attribute project_id.



37
38
39
# File 'lib/optimizely/event/entity/event_batch.rb', line 37

def project_id
  @project_id
end

#revisionObject (readonly)

Returns the value of attribute revision.



37
38
39
# File 'lib/optimizely/event/entity/event_batch.rb', line 37

def revision
  @revision
end

#visitorsObject (readonly)

Returns the value of attribute visitors.



37
38
39
# File 'lib/optimizely/event/entity/event_batch.rb', line 37

def visitors
  @visitors
end

Instance Method Details

#buildObject



40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/optimizely/event/entity/event_batch.rb', line 40

def build
  event_batch = EventBatch.new
  event_batch. = @account_id
  event_batch.project_id = @project_id
  event_batch.revision = @revision
  event_batch.client_name = @client_name
  event_batch.client_version = @client_version
  event_batch.anonymize_ip = @anonymize_ip
  event_batch.enrich_decisions = @enrich_decisions
  event_batch.visitors = @visitors
  event_batch
end

#with_account_id(account_id) ⇒ Object



53
54
55
# File 'lib/optimizely/event/entity/event_batch.rb', line 53

def ()
  @account_id = 
end

#with_anonymize_ip(anonymize_ip) ⇒ Object



73
74
75
# File 'lib/optimizely/event/entity/event_batch.rb', line 73

def with_anonymize_ip(anonymize_ip)
  @anonymize_ip = anonymize_ip
end

#with_client_name(client_name) ⇒ Object



65
66
67
# File 'lib/optimizely/event/entity/event_batch.rb', line 65

def with_client_name(client_name)
  @client_name = client_name
end

#with_client_version(client_version) ⇒ Object



69
70
71
# File 'lib/optimizely/event/entity/event_batch.rb', line 69

def with_client_version(client_version)
  @client_version = client_version
end

#with_enrich_decisions(enrich_decisions) ⇒ Object



77
78
79
# File 'lib/optimizely/event/entity/event_batch.rb', line 77

def with_enrich_decisions(enrich_decisions)
  @enrich_decisions = enrich_decisions
end

#with_project_id(project_id) ⇒ Object



57
58
59
# File 'lib/optimizely/event/entity/event_batch.rb', line 57

def with_project_id(project_id)
  @project_id = project_id
end

#with_revision(revision) ⇒ Object



61
62
63
# File 'lib/optimizely/event/entity/event_batch.rb', line 61

def with_revision(revision)
  @revision = revision
end

#with_visitors(visitors) ⇒ Object



81
82
83
# File 'lib/optimizely/event/entity/event_batch.rb', line 81

def with_visitors(visitors)
  @visitors = visitors
end