module Representable::Object

Public Class Methods

included(base) click to toggle source
# File lib/representable/object.rb, line 6
def self.included(base)
  base.class_eval do
    include Representable
    extend ClassMethods
    register_feature Representable::Object
  end
end

Public Instance Methods

from_object(data, options={}, binding_builder=Binding) click to toggle source
# File lib/representable/object.rb, line 21
def from_object(data, options={}, binding_builder=Binding)
  update_properties_from(data, options, binding_builder)
end
to_object(options={}, binding_builder=Binding) click to toggle source
# File lib/representable/object.rb, line 25
def to_object(options={}, binding_builder=Binding)
  create_representation_with(nil, options, binding_builder)
end