Class: IIIFManifest::DisplayImage
- Inherits:
-
Object
- Object
- IIIFManifest::DisplayImage
- Defined in:
- lib/iiif_manifest/display_image.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#iiif_endpoint ⇒ Object
readonly
Returns the value of attribute iiif_endpoint.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(url, width:, height:, format: nil, iiif_endpoint: nil) ⇒ DisplayImage
constructor
A new instance of DisplayImage.
Constructor Details
#initialize(url, width:, height:, format: nil, iiif_endpoint: nil) ⇒ DisplayImage
Returns a new instance of DisplayImage.
4 5 6 7 8 9 10 |
# File 'lib/iiif_manifest/display_image.rb', line 4 def initialize(url, width:, height:, format: nil, iiif_endpoint: nil) @url = url @width = width @height = height @format = format @iiif_endpoint = iiif_endpoint end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
3 4 5 |
# File 'lib/iiif_manifest/display_image.rb', line 3 def format @format end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
3 4 5 |
# File 'lib/iiif_manifest/display_image.rb', line 3 def height @height end |
#iiif_endpoint ⇒ Object (readonly)
Returns the value of attribute iiif_endpoint.
3 4 5 |
# File 'lib/iiif_manifest/display_image.rb', line 3 def iiif_endpoint @iiif_endpoint end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/iiif_manifest/display_image.rb', line 3 def url @url end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
3 4 5 |
# File 'lib/iiif_manifest/display_image.rb', line 3 def width @width end |