Class: SAML2::Entity::Group

Inherits:
Array
  • Object
show all
Defined in:
lib/saml2/entity.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root) ⇒ Group

Returns a new instance of Group.



34
35
36
37
38
39
# File 'lib/saml2/entity.rb', line 34

def initialize(root)
  @root = root
  replace(Base.load_object_array(@root, "md:EntityDescriptor|md:EntitiesDescriptor",
          'EntityDescriptor' => Entity,
          'EntitiesDescriptor' => Group))
end

Class Method Details

.from_xml(node) ⇒ Object



30
31
32
# File 'lib/saml2/entity.rb', line 30

def self.from_xml(node)
  node && new(node)
end

Instance Method Details

#valid_schema?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/saml2/entity.rb', line 41

def valid_schema?
  Schemas..valid?(@root.document)
end