Module: Representable::Object
- Defined in:
- lib/representable/object.rb,
lib/representable/object/binding.rb
Defined Under Namespace
Modules: ClassMethods
Classes: Binding
Class Method Summary
collapse
Instance Method Summary
collapse
Instance Method Details
#from_object(data, options = {}, binding_builder = Binding) ⇒ Object
21
22
23
|
# 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) ⇒ Object
25
26
27
|
# File 'lib/representable/object.rb', line 25
def to_object(options={}, binding_builder=Binding)
create_representation_with(nil, options, binding_builder)
end
|