Class: Hyrax::ResourceSync::SourceDescriptionWriter
- Inherits:
-
Object
- Object
- Hyrax::ResourceSync::SourceDescriptionWriter
- Defined in:
- lib/hyrax/resource_sync/source_description_writer.rb
Instance Attribute Summary collapse
-
#capability_list_url ⇒ Object
readonly
Returns the value of attribute capability_list_url.
Instance Method Summary collapse
-
#initialize(capability_list_url: 'http://example.com/dataset1/capabilitylist.xml') ⇒ SourceDescriptionWriter
constructor
A new instance of SourceDescriptionWriter.
- #write ⇒ Object
Constructor Details
#initialize(capability_list_url: 'http://example.com/dataset1/capabilitylist.xml') ⇒ SourceDescriptionWriter
Returns a new instance of SourceDescriptionWriter.
5 6 7 |
# File 'lib/hyrax/resource_sync/source_description_writer.rb', line 5 def initialize(capability_list_url: 'http://example.com/dataset1/capabilitylist.xml') @capability_list_url = capability_list_url end |
Instance Attribute Details
#capability_list_url ⇒ Object (readonly)
Returns the value of attribute capability_list_url.
4 5 6 |
# File 'lib/hyrax/resource_sync/source_description_writer.rb', line 4 def capability_list_url @capability_list_url end |
Instance Method Details
#write ⇒ Object
9 10 11 |
# File 'lib/hyrax/resource_sync/source_description_writer.rb', line 9 def write builder.to_xml end |