Class: IIIFManifest::V3::DisplayContent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, type:, **kwargs) ⇒ DisplayContent

Returns a new instance of DisplayContent.



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/iiif_manifest/v3/display_content.rb', line 6

def initialize(url, type:, **kwargs)
  @url = url
  @type = type
  @width = kwargs[:width]
  @height = kwargs[:height]
  @duration = kwargs[:duration]
  @label = kwargs[:label]
  @format = kwargs[:format]
  @iiif_endpoint = kwargs[:iiif_endpoint]
  @auth_service = kwargs[:auth_service]
  @thumbnail = kwargs[:thumbnail]
end

Instance Attribute Details

#auth_serviceObject (readonly)

Returns the value of attribute auth_service.



4
5
6
# File 'lib/iiif_manifest/v3/display_content.rb', line 4

def auth_service
  @auth_service
end

#durationObject (readonly)

Returns the value of attribute duration.



4
5
6
# File 'lib/iiif_manifest/v3/display_content.rb', line 4

def duration
  @duration
end

#formatObject (readonly)

Returns the value of attribute format.



4
5
6
# File 'lib/iiif_manifest/v3/display_content.rb', line 4

def format
  @format
end

#heightObject (readonly)

Returns the value of attribute height.



4
5
6
# File 'lib/iiif_manifest/v3/display_content.rb', line 4

def height
  @height
end

#iiif_endpointObject (readonly)

Returns the value of attribute iiif_endpoint.



4
5
6
# File 'lib/iiif_manifest/v3/display_content.rb', line 4

def iiif_endpoint
  @iiif_endpoint
end

#labelObject (readonly)

Returns the value of attribute label.



4
5
6
# File 'lib/iiif_manifest/v3/display_content.rb', line 4

def label
  @label
end

#thumbnailObject (readonly)

Returns the value of attribute thumbnail.



4
5
6
# File 'lib/iiif_manifest/v3/display_content.rb', line 4

def thumbnail
  @thumbnail
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/iiif_manifest/v3/display_content.rb', line 4

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url.



4
5
6
# File 'lib/iiif_manifest/v3/display_content.rb', line 4

def url
  @url
end

#widthObject (readonly)

Returns the value of attribute width.



4
5
6
# File 'lib/iiif_manifest/v3/display_content.rb', line 4

def width
  @width
end