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.
9 10 11 |
# File 'lib/migration/iiif.rb', line 9 def initialize(hostname) @hostname = hostname end |
Instance Attribute Details
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
18 19 20 |
# File 'lib/migration/iiif.rb', line 18 def hostname @hostname end |
Class Method Details
.run(hostname) ⇒ Object
5 6 7 |
# File 'lib/migration/iiif.rb', line 5 def self.run(hostname) new(hostname).run end |
Instance Method Details
#run ⇒ Object
13 14 15 16 |
# File 'lib/migration/iiif.rb', line 13 def run migrate_featured_images migrate_contact_avatars end |