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.
-
#thumbnail ⇒ Object
readonly
Returns the value of attribute thumbnail.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#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, thumbnail: nil) ⇒ DisplayImage
constructor
A new instance of DisplayImage.
Constructor Details
#initialize(url, width:, height:, format: nil, iiif_endpoint: nil, thumbnail: nil) ⇒ DisplayImage
Returns a new instance of DisplayImage.
4 5 6 7 8 9 10 11 12 |
# File 'lib/iiif_manifest/display_image.rb', line 4 def initialize(url, width:, height:, format: nil, iiif_endpoint: nil, thumbnail: nil) @url = url @type = 'Image' @width = width @height = height @format = format @iiif_endpoint = iiif_endpoint @thumbnail = thumbnail 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 |
#thumbnail ⇒ Object (readonly)
Returns the value of attribute thumbnail.
3 4 5 |
# File 'lib/iiif_manifest/display_image.rb', line 3 def thumbnail @thumbnail end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/iiif_manifest/display_image.rb', line 3 def type @type 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 |