lib/simple_segment/client.rb in simple_segment-1.2.0 vs lib/simple_segment/client.rb in simple_segment-1.3.0

- old
+ new

@@ -20,10 +20,11 @@ # @option :anonymous_id # @option :traits [Hash] # @option :context [Hash] # @option :integrations [Hash] # @option :timestamp [#iso8601] (Time.now) + # @option :message_id def identify(options) Operations::Identify.new(self, symbolize_keys(options)).call end # @param [Hash] options @@ -32,10 +33,11 @@ # @option :anonymous_id # @option :properties [Hash] # @option :context [Hash] # @option :integrations [Hash] # @option :timestamp [#iso8601] (Time.now) + # @option :message_id def track(options) Operations::Track.new(self, symbolize_keys(options)).call end # @param [Hash] options @@ -44,10 +46,11 @@ # @option :name [String] # @option :properties [Hash] # @option :context [Hash] # @option :integrations [Hash] # @option :timestamp [#iso8601] (Time.now) + # @option :message_id def page(options) Operations::Page.new(self, symbolize_keys(options)).call end # @param [Hash] options @@ -56,10 +59,11 @@ # @option :group_id required # @option :traits [Hash] # @option :context [Hash] # @option :integrations [Hash] # @option :timestamp [#iso8601] (Time.now) + # @option :message_id def group(options) Operations::Group.new(self, symbolize_keys(options)).call end # @param [Hash] options @@ -68,9 +72,10 @@ # @option :previous_id required # @option :traits [Hash] # @option :context [Hash] # @option :integrations [Hash] # @option :timestamp [#iso8601] (Time.now) + # @option :message_id def alias(options) Operations::Alias.new(self, symbolize_keys(options)).call end # @yield [batch] Yields a special batch object that can be used to group