Class: Migration::IIIF
- Inherits:
-
Object
- Object
- Migration::IIIF
- Defined in:
- lib/migration/iiif.rb
Overview
This migrates FeaturedImages with crop coordinates into IIIF urls which are stored in the ‘iiif_url’ field.
Instance Attribute Summary collapse
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hostname) ⇒ IIIF
constructor
A new instance of IIIF.
- #run ⇒ Object
Constructor Details
#initialize(hostname) ⇒ IIIF
Returns a new instance of IIIF.
11 12 13 |
# File 'lib/migration/iiif.rb', line 11 def initialize(hostname) @hostname = hostname end |
Instance Attribute Details
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
21 22 23 |
# File 'lib/migration/iiif.rb', line 21 def hostname @hostname end |
Class Method Details
.run(hostname) ⇒ Object
7 8 9 |
# File 'lib/migration/iiif.rb', line 7 def self.run(hostname) new(hostname).run end |
Instance Method Details
#run ⇒ Object
15 16 17 18 19 |
# File 'lib/migration/iiif.rb', line 15 def run migrate_featured_images migrate_contact_avatars migrate_upload_images end |