Method: Brief::Document#to_model
- Defined in:
- lib/brief/document.rb
#to_model ⇒ Object
162 163 164 |
# File 'lib/brief/document.rb', line 162 def to_model model_class.new((data || {}).to_hash.merge(path: path, document: self).reverse_merge(:type=>document_type)) if model_class end |