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:, width: nil, height: nil, duration: nil, label: nil, format: nil, iiif_endpoint: nil, auth_service: nil) ⇒ 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:, width: nil, height: nil, duration: nil, label: nil,
               format: nil, iiif_endpoint: nil, auth_service: nil)
  @url = url
  @type = type
  @width = width
  @height = height
  @duration = duration
  @label = label
  @format = format
  @iiif_endpoint = iiif_endpoint
  @auth_service = auth_service
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

#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