Class: IIIFManifest::V3::ManifestBuilder::IIIFManifest::Canvas
Instance Attribute Summary
#inner_hash
Instance Method Summary
collapse
#initialize
Instance Method Details
#annotations ⇒ Object
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_attributes ⇒ Object
134
135
136
137
138
|
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 134
def initial_attributes
{
'type' => 'Canvas'
}
end
|
#items ⇒ Object
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
|
#label ⇒ Object
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
|
169
170
171
|
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 169
def metadata=(metadata)
inner_hash['metadata'] = 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
|
#placeholderCanvas ⇒ Object
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
|
#summary ⇒ Object
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
|
#thumbnail ⇒ Object
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
|