Sha256: 9a4cc3072711d23702f006f2a98372ea0a6679864436db05a0fd072eb7622820
Contents?: true
Size: 521 Bytes
Versions: 3
Compression:
Stored size: 521 Bytes
Contents
require 'representable' require 'representable/object/binding' module Representable module Object def self.included(base) base.class_eval do include Representable extend ClassMethods register_feature Representable::Object end end module ClassMethods def collection_representer_class Collection end end def from_object(data, options={}, binding_builder=Binding) update_properties_from(data, options, binding_builder) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
representable-2.1.6 | lib/representable/object.rb |
representable-2.1.5 | lib/representable/object.rb |
representable-2.1.4 | lib/representable/object.rb |