Class: Optimizely::EventBatch

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

Defined Under Namespace

Classes: Builder

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#account_idObject

Returns the value of attribute account_id.



20
21
22
# File 'lib/optimizely/event/entity/event_batch.rb', line 20

def 
  @account_id
end

#anonymize_ipObject

Returns the value of attribute anonymize_ip.



20
21
22
# File 'lib/optimizely/event/entity/event_batch.rb', line 20

def anonymize_ip
  @anonymize_ip
end

#client_nameObject

Returns the value of attribute client_name.



20
21
22
# File 'lib/optimizely/event/entity/event_batch.rb', line 20

def client_name
  @client_name
end

#client_versionObject

Returns the value of attribute client_version.



20
21
22
# File 'lib/optimizely/event/entity/event_batch.rb', line 20

def client_version
  @client_version
end

#enrich_decisionsObject

Returns the value of attribute enrich_decisions.



20
21
22
# File 'lib/optimizely/event/entity/event_batch.rb', line 20

def enrich_decisions
  @enrich_decisions
end

#project_idObject

Returns the value of attribute project_id.



20
21
22
# File 'lib/optimizely/event/entity/event_batch.rb', line 20

def project_id
  @project_id
end

#revisionObject

Returns the value of attribute revision.



20
21
22
# File 'lib/optimizely/event/entity/event_batch.rb', line 20

def revision
  @revision
end

#visitorsObject

Returns the value of attribute visitors.



20
21
22
# File 'lib/optimizely/event/entity/event_batch.rb', line 20

def visitors
  @visitors
end

Instance Method Details

#as_jsonObject



23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/optimizely/event/entity/event_batch.rb', line 23

def as_json
  {
    account_id: @account_id,
    project_id: @project_id,
    revision: @revision,
    client_name: @client_name,
    client_version: @client_version,
    anonymize_ip: @anonymize_ip,
    enrich_decisions: @enrich_decisions,
    visitors: @visitors
  }
end