Sha256: 566303d41d18d7bdd35019ad96f65b4f5bd046fe4b287c6a8d2d2d93045970dd
Contents?: true
Size: 1019 Bytes
Versions: 3
Compression:
Stored size: 1019 Bytes
Contents
module Commandoes module Plugins module VirtusPlugin module ClassMethods def self.extended(object) object.send(:include, Virtus.value_object) end def bool(value, options={}) attribute value, Axiom::Types::Boolean, options end def date(value, options={}) attribute value, Date, options end def datetime(value, options={}) attribute value, DateTime, options end def decimal(value, options={}) attribute value, BigDecimal, options end def float(value, options={}) attribute value, Float, options end def integer(value, options={}) attribute value, Integer, options end def string(value, options={}) attribute value, String, options end def time(value, options={}) attribute value, Time, options end end module InstanceMethods end end end end
Version data entries
3 entries across 3 versions & 2 rubygems