Sha256: a0037e9278cc441746e05bcb0d0c89a61d69dc3e489c6e06add6dcdc448d3102
Contents?: true
Size: 859 Bytes
Versions: 14
Compression:
Stored size: 859 Bytes
Contents
module Saml module Elements class EntitiesDescriptor include Saml::Base include Saml::XMLHelpers register_namespace "md", Saml::MD_NAMESPACE tag "EntitiesDescriptor" namespace "md" attribute :_id, String, tag: "ID" attribute :name, String, tag: "Name" attribute :valid_until, Time, tag: "validUntil" attribute :cache_duration, String, tag: "cacheDuration" has_one :signature, Saml::Elements::Signature has_many :entities_descriptors, Saml::Elements::EntitiesDescriptor has_many :entity_descriptors, Saml::Elements::EntityDescriptor validates :entities_descriptors, length: { minimum: 1 }, if: lambda { |ed| ed.entity_descriptors.blank? } validates :entity_descriptors, length: { minimum: 1 }, if: lambda { |ed| ed.entities_descriptors.blank? } end end end
Version data entries
14 entries across 14 versions & 1 rubygems