Class: RSAML::Protocol::Query::SubjectQuery
- Defined in:
- lib/rsaml/protocol/query/subject_query.rb
Overview
Extension point that allows new SAML queries to be defined that specify a single SAML subject. This class should not be instantiated directly.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#subject ⇒ Object
The subject.
Attributes inherited from Message
#consent, #destination, #id, #issue_instant, #issuer, #signature, #version
Instance Method Summary collapse
-
#initialize(subject) ⇒ SubjectQuery
constructor
Initialize the subject query.
-
#validate ⇒ Object
Validate the subject query structure.
Methods inherited from Request
Methods inherited from Message
Constructor Details
#initialize(subject) ⇒ SubjectQuery
Initialize the subject query
11 12 13 |
# File 'lib/rsaml/protocol/query/subject_query.rb', line 11 def initialize(subject) @subject = subject end |
Instance Attribute Details
#subject ⇒ Object
The subject
8 9 10 |
# File 'lib/rsaml/protocol/query/subject_query.rb', line 8 def subject @subject end |
Instance Method Details
#validate ⇒ Object
Validate the subject query structure.
16 17 18 |
# File 'lib/rsaml/protocol/query/subject_query.rb', line 16 def validate raise ValidationError, "Subject is required" if subject.nil? end |