Class: Hyrax::ResourceSync::CapabilityListWriter
- Inherits:
-
Object
- Object
- Hyrax::ResourceSync::CapabilityListWriter
- Defined in:
- lib/hyrax/resource_sync/capability_list_writer.rb
Instance Attribute Summary collapse
-
#change_list_url ⇒ Object
readonly
Returns the value of attribute change_list_url.
-
#description_url ⇒ Object
readonly
Returns the value of attribute description_url.
-
#resource_list_url ⇒ Object
readonly
Returns the value of attribute resource_list_url.
Instance Method Summary collapse
-
#initialize(resource_list_url:, change_list_url:, description_url:) ⇒ CapabilityListWriter
constructor
A new instance of CapabilityListWriter.
- #write ⇒ Object
Constructor Details
#initialize(resource_list_url:, change_list_url:, description_url:) ⇒ CapabilityListWriter
Returns a new instance of CapabilityListWriter.
6 7 8 9 10 |
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 6 def initialize(resource_list_url:, change_list_url:, description_url:) @resource_list_url = resource_list_url @change_list_url = change_list_url @description_url = description_url end |
Instance Attribute Details
#change_list_url ⇒ Object (readonly)
Returns the value of attribute change_list_url.
5 6 7 |
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 5 def change_list_url @change_list_url end |
#description_url ⇒ Object (readonly)
Returns the value of attribute description_url.
5 6 7 |
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 5 def description_url @description_url end |
#resource_list_url ⇒ Object (readonly)
Returns the value of attribute resource_list_url.
5 6 7 |
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 5 def resource_list_url @resource_list_url end |
Instance Method Details
#write ⇒ Object
12 13 14 |
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 12 def write builder.to_xml end |