class Shibkit::MetaMeta::Service
Constants
- REQUIRED_QUACKS
- ROOT_ELEMENT
Element and attribute used to select XML for new objects
- TARGET_ATTR
Attributes
attributes[RW]
default[RW]
default?[RW]
descriptions[RW]
index[RW]
names[RW]
Public Instance Methods
description(lang=:en)
click to toggle source
# File lib/shibkit/meta_meta/service.rb, line 53 def description(lang=:en) return descriptions[lang] end
name(lang=:en)
click to toggle source
# File lib/shibkit/meta_meta/service.rb, line 47 def name(lang=:en) return names[lang] end
to_s()
click to toggle source
# File lib/shibkit/meta_meta/service.rb, line 59 def to_s return name(:en) end
Private Instance Methods
parse_xml()
click to toggle source
# File lib/shibkit/meta_meta/service.rb, line 67 def parse_xml @index = @noko['index'].to_i || 0 @default = @noko['isDefault'] || 'false' ## Display names @names = extract_lang_map_of_strings("xmlns:ServiceName") ## Descriptions @descriptions = extract_lang_map_of_strings("xmlns:ServiceDescription") @attributes ||= Array.new @noko.xpath('xmlns:RequestedAttribute').each do |ax| attribute = Shibkit::MetaMeta::RequestedAttribute.new(ax).filter @attributes << attribute if attribute end log.debug " Derived service #{name} from XML" end