Class: IIIFManifest::DisplayImage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#formatObject (readonly)

Returns the value of attribute format.



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

def format
  @format
end

#heightObject (readonly)

Returns the value of attribute height.



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

def height
  @height
end

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

#thumbnailObject (readonly)

Returns the value of attribute thumbnail.



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

def thumbnail
  @thumbnail
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url.



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

def url
  @url
end

#widthObject (readonly)

Returns the value of attribute width.



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

def width
  @width
end