Module: RIFCS::Party
- Includes:
- RIFCS
- Defined in:
- lib/rif-cs/party.rb
Instance Method Summary
collapse
Methods included from RIFCS
addresses, camelize, coverage, electronic_addresses, existence_dates, list_of, locations, names, physical_addresses, related_info, related_objects, rights, spatials, subjects, temporals, #to_rif
Instance Method Details
#party_key ⇒ Object
39
40
41
|
# File 'lib/rif-cs/party.rb', line 39
def party_key
raise "Supply a party_key attribute or implement a method"
end
|
#to_registry_node(encoding = 'UTF-8') ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/rif-cs/party.rb', line 6
def to_registry_node(encoding='UTF-8')
Nokogiri::XML::Builder.new(:encoding => encoding) do |xml|
xml.registryObject_(:group => party_group) do
xml.key_ party_key
xml.originatingSource_ party_originating_source if respond_to?(:party_originating_source)
xml.party_(:dateModified => party_date_modified, :type => party_type) do
RIFCS::list_of(party_identifiers, :identifiers, xml) if respond_to?(:party_identifiers)
RIFCS::names(party_names, xml) if respond_to?(:party_names)
RIFCS::locations(party_locations, xml) if respond_to?(:party_locations)
RIFCS::coverage(party_coverage, xml) if respond_to?(:party_coverage)
RIFCS::list_of(party_descriptions, :descriptions, xml) if respond_to?(:party_descriptions)
RIFCS::existence_dates(party_existence_dates, xml) if respond_to?(:party_existence_dates)
RIFCS::related_info(party_related_info, xml) if respond_to?(:party_related_infos)
RIFCS::related_objects(party_related_objects, xml) if respond_to?(:party_related_objects)
RIFCS::rights(party_rights, xml) if respond_to?(:party_rights)
RIFCS::subjects(party_subjects, xml) if respond_to?(:party_subjects)
end end
end
end
|