Class: IIIFManifest::V3::DisplayContent
- Inherits:
-
Object
- Object
- IIIFManifest::V3::DisplayContent
- Defined in:
- lib/iiif_manifest/v3/display_content.rb
Instance Attribute Summary collapse
-
#auth_service ⇒ Object
readonly
Returns the value of attribute auth_service.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#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.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#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, type:, width: nil, height: nil, duration: nil, label: nil, format: nil, iiif_endpoint: nil, auth_service: nil) ⇒ DisplayContent
constructor
A new instance of DisplayContent.
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_service ⇒ Object (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 |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
4 5 6 |
# File 'lib/iiif_manifest/v3/display_content.rb', line 4 def duration @duration end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
4 5 6 |
# File 'lib/iiif_manifest/v3/display_content.rb', line 4 def format @format end |
#height ⇒ Object (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_endpoint ⇒ Object (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 |
#label ⇒ Object (readonly)
Returns the value of attribute label.
4 5 6 |
# File 'lib/iiif_manifest/v3/display_content.rb', line 4 def label @label end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/iiif_manifest/v3/display_content.rb', line 4 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
4 5 6 |
# File 'lib/iiif_manifest/v3/display_content.rb', line 4 def url @url end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
4 5 6 |
# File 'lib/iiif_manifest/v3/display_content.rb', line 4 def width @width end |