Module: Vayacondios::Server
- Defined in:
- lib/vayacondios/server/models/event.rb,
lib/vayacondios/server/api.rb,
lib/vayacondios/server/driver.rb,
lib/vayacondios/server/api_options.rb,
lib/vayacondios/server/models/stash.rb,
lib/vayacondios/server/configuration.rb,
lib/vayacondios/server/drivers/mongo.rb,
lib/vayacondios/server/models/document.rb,
lib/vayacondios/server/handlers/event_handler.rb,
lib/vayacondios/server/handlers/stash_handler.rb,
lib/vayacondios/server/handlers/events_handler.rb,
lib/vayacondios/server/handlers/stream_handler.rb,
lib/vayacondios/server/handlers/stashes_handler.rb,
lib/vayacondios/server/handlers/document_handler.rb
Overview
The Document model is a base model used by Event, Stash, &c.
The ‘organization` and `topic` properties are defined as instance attributes because they are used for routing the document. Subclasses should continue to store each separate piece of routing information as its own instance variable and store the entire payload/data as a single field.
organization coca_cola
|---- topic |---- ad_campaigns
|---- ... ------> |---- web_traffic
`---- topic `---- social_media_buzz
Defined Under Namespace
Modules: ApiOptions, Driver Classes: Api, Configuration, Document, DocumentHandler, Event, EventHandler, EventsHandler, MongoDriver, Stash, StashHandler, StashesHandler, StreamHandler
Constant Summary collapse
- DbConfig =
Configuration.new('database.yml')