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.
-
#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, type:, **kwargs) ⇒ DisplayContent
constructor
A new instance of DisplayContent.
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_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 |
#thumbnail ⇒ Object (readonly)
Returns the value of attribute thumbnail.
4 5 6 |
# File 'lib/iiif_manifest/v3/display_content.rb', line 4 def thumbnail @thumbnail 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 |