Sha256: 8154e94dedc65007e2c66cf806767aa942545ab1118285d9f29afcb4cf7a2a80
Contents?: true
Size: 649 Bytes
Versions: 19
Compression:
Stored size: 649 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 def to_object(options={}, binding_builder=Binding) create_representation_with(nil, options, binding_builder) end end end
Version data entries
19 entries across 19 versions & 1 rubygems