Class: IIIFManifest::IIIFEndpoint
- Inherits:
-
Object
- Object
- IIIFManifest::IIIFEndpoint
- Defined in:
- lib/iiif_manifest/iiif_endpoint.rb
Instance Attribute Summary collapse
-
#profile ⇒ Object
readonly
Returns the value of attribute profile.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #context ⇒ Object
-
#initialize(url, profile: nil) ⇒ IIIFEndpoint
constructor
A new instance of IIIFEndpoint.
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
#profile ⇒ Object (readonly)
Returns the value of attribute profile.
3 4 5 |
# File 'lib/iiif_manifest/iiif_endpoint.rb', line 3 def profile @profile end |
#url ⇒ Object (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
#context ⇒ Object
9 10 11 |
# File 'lib/iiif_manifest/iiif_endpoint.rb', line 9 def context 'http://iiif.io/api/image/2/context.json' end |