Module: Card::Migration::Import::ImportData::CardContent
- Included in:
- Card::Migration::Import::ImportData
- Defined in:
- lib/card/migration/import/import_data/card_content.rb
Overview
handles card content for import
Constant Summary collapse
Instance Method Summary collapse
Instance Method Details
#card_content(data) ⇒ Object
9 10 11 |
# File 'lib/card/migration/import/import_data/card_content.rb', line 9 def card_content data File.read(content_path(data)) end |
#content_changed?(data) ⇒ Boolean
13 14 15 |
# File 'lib/card/migration/import/import_data/card_content.rb', line 13 def content_changed? data Time.parse(data[:merged]) < File.mtime(content_path(data)) end |