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.
5 6 7 8 9 |
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 5 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.
4 5 6 |
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 4 def change_list_url @change_list_url end |
#description_url ⇒ Object (readonly)
Returns the value of attribute description_url.
4 5 6 |
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 4 def description_url @description_url end |
#resource_list_url ⇒ Object (readonly)
Returns the value of attribute resource_list_url.
4 5 6 |
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 4 def resource_list_url @resource_list_url end |
Instance Method Details
#write ⇒ Object
11 12 13 |
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 11 def write builder.to_xml end |