class IIIF::Presentation::Range

Constants

TYPE

Public Class Methods

new(hsh={}) click to toggle source
Calls superclass method
# File lib/iiif/presentation/range.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
# File lib/iiif/presentation/range.rb, line 13
def array_only_keys
  super + %w{ ranges }
end
required_keys() click to toggle source
Calls superclass method
# File lib/iiif/presentation/range.rb, line 9
def required_keys
  super + %w{ @id label }
end
validate() click to toggle source
# File lib/iiif/presentation/range.rb, line 26
def validate
  # Values of the ranges array must be strings
end