Sha256: 5092468e8603dfd9c0e08b90fd800d8483980240f9a8710b161b65fc29cf6729
Contents?: true
Size: 898 Bytes
Versions: 1
Compression:
Stored size: 898 Bytes
Contents
require_relative 'shared/sorted_resource_list' require_relative 'shared/sitemap_index' module Resync # A change list index. See section 12.2, # "{http://www.openarchives.org/rs/1.0/resourcesync#ChangeListIndex Change List Index}", # in the ResourceSync specification. class ChangeListIndex < SortedResourceList include ::XML::Mapping include SitemapIndex # The capability provided by this type. CAPABILITY = 'changelist' # use_mapping :sitemapindex # root_element_name 'sitemapindex' # array_node :resources, 'sitemap', class: Resource, default_value: [], sub_mapping: :_default # # # Ensures that an index is always written as a +<sitemapindex>+. # # Overrides +::XML::Mapping.save_to_xml+. # def save_to_xml(options = { mapping: :_default }) # options = options.merge(mapping: :sitemapindex) # super(options) # end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resync-0.1.0 | lib/resync/change_list_index.rb |