Sha256: 8767fe9c1b1534f34de89cbd5c0da6496958c88f86a0e12c8a405ec0cefbd13d
Contents?: true
Size: 650 Bytes
Versions: 5
Compression:
Stored size: 650 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
5 entries across 5 versions & 3 rubygems