Class: IIIFManifest::V3::ManifestBuilder::IIIFManifest::Canvas

Inherits:
IIIFManifest::V3::ManifestBuilder::IIIFService show all
Defined in:
lib/iiif_manifest/v3/manifest_builder/iiif_service.rb

Instance Attribute Summary

Attributes inherited from ManifestBuilder::IIIFService

#inner_hash

Instance Method Summary collapse

Methods inherited from ManifestBuilder::IIIFService

#initialize

Constructor Details

This class inherits a constructor from IIIFManifest::ManifestBuilder::IIIFService

Instance Method Details

#annotationsObject



153
154
155
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 153

def annotations
  inner_hash['annotations']
end

#annotations=(annotations) ⇒ Object



157
158
159
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 157

def annotations=(annotations)
  inner_hash['annotations'] = annotations
end

#homepage=(homepage) ⇒ Object



182
183
184
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 182

def homepage=(homepage)
  inner_hash['homepage'] = homepage
end

#initial_attributesObject



134
135
136
137
138
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 134

def initial_attributes
  {
    'type' => 'Canvas'
  }
end

#itemsObject



118
119
120
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 118

def items
  inner_hash['items'] ||= []
end

#items=(items) ⇒ Object



122
123
124
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 122

def items=(items)
  inner_hash['items'] = items
end

#labelObject



110
111
112
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 110

def label
  inner_hash['label']
end

#label=(label) ⇒ Object



114
115
116
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 114

def label=(label)
  inner_hash['label'] = label
end

#metadata=(metadata) ⇒ Object



169
170
171
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 169

def metadata=()
  inner_hash['metadata'] = 
end

#part_of=(part_of) ⇒ Object



165
166
167
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 165

def part_of=(part_of)
  inner_hash['partOf'] = part_of
end

#placeholder_canvas=(placeholder_canvas) ⇒ Object



144
145
146
147
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 144

def placeholder_canvas=(placeholder_canvas)
  return unless placeholder_canvas.present?
  inner_hash['placeholderCanvas'] = placeholder_canvas
end

#placeholderCanvasObject



149
150
151
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 149

def placeholderCanvas
  inner_hash['placeholderCanvas']
end

#rendering=(rendering) ⇒ Object



140
141
142
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 140

def rendering=(rendering)
  inner_hash['rendering'] = rendering
end

#see_also=(see_also) ⇒ Object



161
162
163
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 161

def see_also=(see_also)
  inner_hash['seeAlso'] = see_also
end

#summaryObject



173
174
175
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 173

def summary
  inner_hash['summary']
end

#summary=(summary) ⇒ Object



177
178
179
180
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 177

def summary=(summary)
  return unless summary.present?
  inner_hash['summary'] = summary
end

#thumbnailObject



126
127
128
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 126

def thumbnail
  inner_hash['thumbnail']
end

#thumbnail=(thumbnail) ⇒ Object



130
131
132
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 130

def thumbnail=(thumbnail)
  inner_hash['thumbnail'] = thumbnail
end