From 0d1ad5e1704a900b829e8f7d49220f6f260f5f23 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Tue, 11 Jul 2017 23:52:49 +0200 Subject: [PATCH] Add basic documentation for Rackstash::Fields --- lib/rackstash/fields.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/rackstash/fields.rb b/lib/rackstash/fields.rb index f408fe4..8c9d35a 100644 --- a/lib/rackstash/fields.rb +++ b/lib/rackstash/fields.rb @@ -3,6 +3,20 @@ # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE.txt file for details. +module Rackstash + # Fields are specialized data storage classes which ensure consistent and + # strictly normalized data. They are used to store additional information + # besides just log messages in a {Buffer}. + # + # Field classes are modeled after classes in Ruby core and generally provide + # the exact interface and semantics with the notable exception that the + # classes always ensure that any store data is directly mappable to JSON. As + # such, all stored data is always normalized in insert and converted to the + # respective base-types. + module Fields + end +end + require 'rackstash/fields/abstract_collection' require 'rackstash/fields/hash' require 'rackstash/fields/array'