Sha256: 3130fd7061c65c4e7413437ca52c9c6b7b827d34770fa74da9ae745c32bd7901
Contents?: true
Size: 739 Bytes
Versions: 3
Compression:
Stored size: 739 Bytes
Contents
# module DataPoint #extend Mongoid::Document # module ClassMethods # end # module InstanceMethods # end # def self.included(receiver) # receiver.extend ClassMethods # receiver.send :include, InstanceMethods # end # end c_name = "#{adapter_name.to_s.capitalize}" doc = Serialbox::Adapters.const_get(c_name).constants adpstr = c_name+"::"+doc[0].to_s @adapter = adpstr.constantize #module DataPoint #def adapter #end # include Mongoid::Document # what if we want alternative configurable data end points # what other attributes might the general datapoint have # unique id is included with mongoid # field :time #end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
serialbar-0.0.3 | lib/serialbar/scratch.rb |
serialbar-0.0.2 | lib/serialbar/scratch.rb |
serialbar-0.0.1 | lib/serialbar/scratch.rb |