class IIIF::Presentation::Layer
Constants
- TYPE
Public Class Methods
new(hsh={})
click to toggle source
Calls superclass method
IIIF::Presentation::AbstractResource::new
# File lib/iiif/presentation/layer.rb, line 21 def initialize(hsh={}) hsh['@type'] = TYPE unless hsh.has_key? '@type' super(hsh) end
Public Instance Methods
array_only_keys()
click to toggle source
Calls superclass method
IIIF::Presentation::AbstractResource#array_only_keys
# File lib/iiif/presentation/layer.rb, line 13 def array_only_keys super + %w{ other_content } end
required_keys()
click to toggle source
Calls superclass method
IIIF::Presentation::AbstractResource#required_keys
# File lib/iiif/presentation/layer.rb, line 9 def required_keys super + %w{ @id label } end
string_only_keys()
click to toggle source
Calls superclass method
IIIF::Presentation::AbstractResource#string_only_keys
# File lib/iiif/presentation/layer.rb, line 17 def string_only_keys super + %w{ viewing_direction } # should any of the any_type_keys be here? end
validate()
click to toggle source
Calls superclass method
# File lib/iiif/presentation/layer.rb, line 26 def validate # Must all members of otherContent and images must be a URI (string), or # can they be inline? super end