Class: SAML2::NameID::Policy
- Inherits:
-
Object
- Object
- SAML2::NameID::Policy
- Defined in:
- lib/saml2/name_id.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
Class Method Summary collapse
Instance Method Summary collapse
- #==(rhs) ⇒ Object
- #allow_create? ⇒ Boolean
-
#initialize(allow_create, format) ⇒ Policy
constructor
A new instance of Policy.
Constructor Details
#initialize(allow_create, format) ⇒ Policy
Returns a new instance of Policy.
26 27 28 |
# File 'lib/saml2/name_id.rb', line 26 def initialize(allow_create, format) @allow_create, @format = allow_create, format end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
17 18 19 |
# File 'lib/saml2/name_id.rb', line 17 def format @format end |
Class Method Details
Instance Method Details
#==(rhs) ⇒ Object
34 35 36 |
# File 'lib/saml2/name_id.rb', line 34 def ==(rhs) format == rhs.format && allow_create? == rhs.allow_create? end |
#allow_create? ⇒ Boolean
30 31 32 |
# File 'lib/saml2/name_id.rb', line 30 def allow_create? @allow_create end |