Class: Hyrax::ResourceSync::ChangeListWriter
- Inherits:
-
Object
- Object
- Hyrax::ResourceSync::ChangeListWriter
- Defined in:
- lib/hyrax/resource_sync/change_list_writer.rb
Overview
TODO: the big assumption I’m making here is that the repository has fewer than 50,000 resources to list. The Sitemap protocol is limited at 50,000 items, so if we require more than that, we must have multiple Change lists and add a Change List Index to point to all of them.
Constant Summary collapse
- MODIFIED_DATE_FIELD =
'system_modified_dtsi'.freeze
- BEGINNING_OF_TIME =
'1970-01-01T00:00:00Z'.freeze
Instance Attribute Summary collapse
-
#capability_list_url ⇒ Object
readonly
Returns the value of attribute capability_list_url.
-
#resource_host ⇒ Object
readonly
Returns the value of attribute resource_host.
Instance Method Summary collapse
-
#initialize(resource_host:, capability_list_url:) ⇒ ChangeListWriter
constructor
A new instance of ChangeListWriter.
- #write ⇒ Object
Constructor Details
#initialize(resource_host:, capability_list_url:) ⇒ ChangeListWriter
Returns a new instance of ChangeListWriter.
14 15 16 17 |
# File 'lib/hyrax/resource_sync/change_list_writer.rb', line 14 def initialize(resource_host:, capability_list_url:) @resource_host = resource_host @capability_list_url = capability_list_url end |
Instance Attribute Details
#capability_list_url ⇒ Object (readonly)
Returns the value of attribute capability_list_url.
10 11 12 |
# File 'lib/hyrax/resource_sync/change_list_writer.rb', line 10 def capability_list_url @capability_list_url end |
#resource_host ⇒ Object (readonly)
Returns the value of attribute resource_host.
10 11 12 |
# File 'lib/hyrax/resource_sync/change_list_writer.rb', line 10 def resource_host @resource_host end |
Instance Method Details
#write ⇒ Object
19 20 21 |
# File 'lib/hyrax/resource_sync/change_list_writer.rb', line 19 def write builder.to_xml end |