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.
6 7 8 |
# File 'lib/hyrax/resource_sync/source_description_writer.rb', line 6 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.
5 6 7 |
# File 'lib/hyrax/resource_sync/source_description_writer.rb', line 5 def capability_list_url @capability_list_url end |
Instance Method Details
#write ⇒ Object
10 11 12 |
# File 'lib/hyrax/resource_sync/source_description_writer.rb', line 10 def write builder.to_xml end |