Method: Oym::Resource#from_data
- Defined in:
- lib/oym/resource.rb
#from_data(data) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/oym/resource.rb', line 18 def from_data(data) initial_resource do |e| oym_attributes.each do |attr| e.send(attr.key, attr.value_from(data)) end end end |