module Pod4
Pod4
, which:
-
will gather data from absolutely anything. Nebulous, Sequel, Pg, TinyTds, whatever. Add your own on the fly.
-
will allow you to define models which are genuinely represent the data your way, not the way the data source sees it.
-
is hopefully simple and clean; just a very light helper layer with the absolute minimum of magic or surprises for the developer.
For more information:
-
There is a short tutorial in the readme.
-
you should look at the contract
Pod4
makes with its callers – you should find all that you need in the classesPod4::Interface
andPod4::Model
. -
Or, read the tests, of course.
Constants
- VERSION
Public Class Methods
Return a logger instance if you set one using set_logger. Otherwise, return a logger instance that points to a DevNull IO object.
# File lib/pod4.rb, line 49 def self.logger Param.get(:logger) || Logger.new( DevNull.new ) end
If you have a logger instance, set it here to have Pod4
models and interfaces write to it.
# File lib/pod4.rb, line 40 def self.set_logger(instance) Param.set(:logger, instance) end