class SnowplowTracker::SelfDescribingJson

Public Class Methods

new(schema, data) click to toggle source
# File lib/snowplow-tracker/self_describing_json.rb, line 20
def initialize(schema, data)
  @schema = schema
  @data = data
end

Public Instance Methods

to_json() click to toggle source
# File lib/snowplow-tracker/self_describing_json.rb, line 25
def to_json
  {
    :schema => @schema,
    :data => @data
  }
end