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.



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

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.



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

def change_list_url
  @change_list_url
end

#description_urlObject (readonly)

Returns the value of attribute description_url.



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

def description_url
  @description_url
end

#resource_list_urlObject (readonly)

Returns the value of attribute resource_list_url.



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

def resource_list_url
  @resource_list_url
end

Instance Method Details

#writeObject



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

def write
  builder.to_xml
end