Class: Hyrax::ResourceSync::SourceDescriptionWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/hyrax/resource_sync/source_description_writer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlObject (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

#writeObject



9
10
11
# File 'lib/hyrax/resource_sync/source_description_writer.rb', line 9

def write
  builder.to_xml
end