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.



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

#writeObject



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

def write
  builder.to_xml
end