Class: Migration::IIIF

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

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

#hostnameObject (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

#runObject



15
16
17
18
19
# File 'lib/migration/iiif.rb', line 15

def run
  migrate_featured_images
  migrate_contact_avatars
  migrate_upload_images
end