Class: Hyrax::ResourceSync::CapabilityListWriter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_list_url:, change_list_url:, description_url:) ⇒ CapabilityListWriter

Returns a new instance of CapabilityListWriter.



6
7
8
9
10
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 6

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

Returns the value of attribute change_list_url.



5
6
7
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 5

def change_list_url
  @change_list_url
end

#description_urlObject (readonly)

Returns the value of attribute description_url.



5
6
7
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 5

def description_url
  @description_url
end

#resource_list_urlObject (readonly)

Returns the value of attribute resource_list_url.



5
6
7
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 5

def resource_list_url
  @resource_list_url
end

Instance Method Details

#writeObject



12
13
14
# File 'lib/hyrax/resource_sync/capability_list_writer.rb', line 12

def write
  builder.to_xml
end