Module: Contentful::DatabaseImporter::ResourceBootstrapMethods
- Included in:
- Resource
- Defined in:
- lib/contentful/database_importer/resource_bootstrap_methods.rb
Overview
Bootstrap related methods
Instance Method Summary collapse
Instance Method Details
#to_bootstrap ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/contentful/database_importer/resource_bootstrap_methods.rb', line 5 def to_bootstrap { sys: { id: id }, fields: bootstrap_fields } end |
#to_link ⇒ Object
14 15 16 17 18 19 |
# File 'lib/contentful/database_importer/resource_bootstrap_methods.rb', line 14 def to_link { linkType: 'Entry', id: id } end |