Method: Wgit::Model.url
- Defined in:
- lib/wgit/database/model.rb
.url(url) ⇒ Hash
The data model for a Wgit::Url collection object and for an embedded 'url' inside a Wgit::Document collection object.
13 14 15 16 17 18 |
# File 'lib/wgit/database/model.rb', line 13 def self.url(url) raise 'url must respond_to? :to_h' unless url.respond_to?(:to_h) model = url.to_h select_bson_types(model) end |