Sha256: 399a710509fca02dc627f724f6fcc72e29f96c7ab89bd8fbd4cd2ce751d703e4

Contents?: true

Size: 447 Bytes

Versions: 14

Compression:

Stored size: 447 Bytes

Contents

module Saml
  module Kit
    class Organization
      include XmlParseable

      attr_reader :content

      def initialize(node)
        @to_nokogiri = node
        @content = node.to_s
      end

      # Returns the Organization Name
      def name
        at_xpath('./md:OrganizationName').try(:text)
      end

      # Returns the Organization URL
      def url
        at_xpath('./md:OrganizationURL').try(:text)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
saml-kit-1.0.31 lib/saml/kit/organization.rb
saml-kit-1.0.30 lib/saml/kit/organization.rb
saml-kit-1.0.29 lib/saml/kit/organization.rb
saml-kit-1.0.28 lib/saml/kit/organization.rb
saml-kit-1.0.27 lib/saml/kit/organization.rb
saml-kit-1.0.26 lib/saml/kit/organization.rb
saml-kit-1.0.25 lib/saml/kit/organization.rb
saml-kit-1.0.24 lib/saml/kit/organization.rb
saml-kit-1.0.23 lib/saml/kit/organization.rb
saml-kit-1.0.22 lib/saml/kit/organization.rb
saml-kit-1.0.21 lib/saml/kit/organization.rb
saml-kit-1.0.20 lib/saml/kit/organization.rb
saml-kit-1.0.19 lib/saml/kit/organization.rb
saml-kit-1.0.18 lib/saml/kit/organization.rb