class Optimizely::VisitorAttribute
Attributes
entity_id[R]
key[R]
type[R]
value[R]
Public Class Methods
new(entity_id:, key:, type:, value:)
click to toggle source
# File lib/optimizely/event/entity/visitor_attribute.rb, line 21 def initialize(entity_id:, key:, type:, value:) @entity_id = entity_id @key = key @type = type @value = value end
Public Instance Methods
as_json()
click to toggle source
# File lib/optimizely/event/entity/visitor_attribute.rb, line 28 def as_json { entity_id: @entity_id, key: @key, type: @type, value: @value } end