class Itly::Plugin::Snowplow::Context

Snowplow context to be used by CallOptions

Attributes

data[R]
schema[R]

Public Class Methods

new(schema:, data:) click to toggle source
# File lib/itly/plugin/snowplow/context.rb, line 12
def initialize(schema:, data:)
  @schema = schema
  @data = data
end

Public Instance Methods

to_s() click to toggle source
# File lib/itly/plugin/snowplow/context.rb, line 21
def to_s
  "#<Snowplow::Context schema: #{schema} data: #{data}>"
end
to_self_describing_json() click to toggle source
# File lib/itly/plugin/snowplow/context.rb, line 17
def to_self_describing_json
  SnowplowTracker::SelfDescribingJson.new schema, data
end