Class: Optimizely::EventBatch::Builder
- Inherits:
-
Object
- Object
- Optimizely::EventBatch::Builder
- Defined in:
- lib/optimizely/event/entity/event_batch.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#anonymize_ip ⇒ Object
readonly
Returns the value of attribute anonymize_ip.
-
#client_name ⇒ Object
readonly
Returns the value of attribute client_name.
-
#client_version ⇒ Object
readonly
Returns the value of attribute client_version.
-
#enrich_decisions ⇒ Object
readonly
Returns the value of attribute enrich_decisions.
-
#project_id ⇒ Object
readonly
Returns the value of attribute project_id.
-
#revision ⇒ Object
readonly
Returns the value of attribute revision.
-
#visitors ⇒ Object
readonly
Returns the value of attribute visitors.
Instance Method Summary collapse
- #build ⇒ Object
- #with_account_id(account_id) ⇒ Object
- #with_anonymize_ip(anonymize_ip) ⇒ Object
- #with_client_name(client_name) ⇒ Object
- #with_client_version(client_version) ⇒ Object
- #with_enrich_decisions(enrich_decisions) ⇒ Object
- #with_project_id(project_id) ⇒ Object
- #with_revision(revision) ⇒ Object
- #with_visitors(visitors) ⇒ Object
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
37 38 39 |
# File 'lib/optimizely/event/entity/event_batch.rb', line 37 def account_id @account_id end |
#anonymize_ip ⇒ Object (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_name ⇒ Object (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_version ⇒ Object (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_decisions ⇒ Object (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_id ⇒ Object (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 |
#revision ⇒ Object (readonly)
Returns the value of attribute revision.
37 38 39 |
# File 'lib/optimizely/event/entity/event_batch.rb', line 37 def revision @revision end |
#visitors ⇒ Object (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
#build ⇒ Object
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 = @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 with_account_id(account_id) @account_id = 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 |