main
1# frozen_string_literal: true
2
3module Saml
4 module Kit
5 class Organization
6 include XmlParseable
7
8 attr_reader :content
9
10 def initialize(node)
11 @to_nokogiri = node
12 @content = node.to_s
13 end
14
15 # Returns the Organization Name
16 def name
17 at_xpath('./md:OrganizationName').try(:text)
18 end
19
20 # Returns the Organization URL
21 def url
22 at_xpath('./md:OrganizationURL').try(:text)
23 end
24 end
25 end
26end