Class: IIIFManifest::IIIFEndpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/iiif_manifest/iiif_endpoint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, profile: nil) ⇒ IIIFEndpoint

Returns a new instance of IIIFEndpoint.



4
5
6
7
# File 'lib/iiif_manifest/iiif_endpoint.rb', line 4

def initialize(url, profile: nil)
  @url = url
  @profile = profile
end

Instance Attribute Details

#profileObject (readonly)

Returns the value of attribute profile.



3
4
5
# File 'lib/iiif_manifest/iiif_endpoint.rb', line 3

def profile
  @profile
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/iiif_manifest/iiif_endpoint.rb', line 3

def url
  @url
end

Instance Method Details

#contextObject



9
10
11
# File 'lib/iiif_manifest/iiif_endpoint.rb', line 9

def context
  'http://iiif.io/api/image/2/context.json'
end