class Optimizely::EventBatch::Builder
Attributes
account_id[R]
anonymize_ip[R]
client_name[R]
client_version[R]
enrich_decisions[R]
project_id[R]
revision[R]
visitors[R]
Public Instance Methods
build()
click to toggle source
# File lib/optimizely/event/entity/event_batch.rb, line 40 def build event_batch = EventBatch.new event_batch.account_id = @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)
click to toggle source
# File lib/optimizely/event/entity/event_batch.rb, line 53 def with_account_id(account_id) @account_id = account_id end
with_anonymize_ip(anonymize_ip)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# File lib/optimizely/event/entity/event_batch.rb, line 57 def with_project_id(project_id) @project_id = project_id end
with_revision(revision)
click to toggle source
# File lib/optimizely/event/entity/event_batch.rb, line 61 def with_revision(revision) @revision = revision end
with_visitors(visitors)
click to toggle source
# File lib/optimizely/event/entity/event_batch.rb, line 81 def with_visitors(visitors) @visitors = visitors end