Class: SnowplowTracker::SelfDescribingJson
- Inherits:
-
Object
- Object
- SnowplowTracker::SelfDescribingJson
- Defined in:
- lib/snowplow-tracker/self_describing_json.rb
Instance Method Summary collapse
-
#initialize(schema, data) ⇒ SelfDescribingJson
constructor
A new instance of SelfDescribingJson.
- #to_json ⇒ Object
Constructor Details
#initialize(schema, data) ⇒ SelfDescribingJson
Returns a new instance of SelfDescribingJson.
20 21 22 23 |
# File 'lib/snowplow-tracker/self_describing_json.rb', line 20 def initialize(schema, data) @schema = schema @data = data end |
Instance Method Details
#to_json ⇒ Object
25 26 27 28 29 30 |
# File 'lib/snowplow-tracker/self_describing_json.rb', line 25 def to_json { :schema => @schema, :data => @data } end |