Class: RSAML::Condition

Inherits:
Object
  • Object
show all
Defined in:
lib/rsaml/condition.rb

Overview

Base class for conditions

Instance Method Summary collapse

Instance Method Details

#assertObject

Assert that the condition evaluates to true, raise an AssertionError if not



5
6
# File 'lib/rsaml/condition.rb', line 5

def assert
end

#to_xml(xml = Builder::XmlMarkup.new) ⇒ Object

Construct an XML fragment representing the condition



9
10
11
# File 'lib/rsaml/condition.rb', line 9

def to_xml(xml=Builder::XmlMarkup.new)
  xml.tag!('saml:Condition')
end