Class: VIISP::Auth::Identity
- Inherits:
-
Object
- Object
- VIISP::Auth::Identity
- Defined in:
- lib/viisp/auth/identity.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(doc) ⇒ Identity
constructor
A new instance of Identity.
- #to_hash ⇒ Object
Constructor Details
#initialize(doc) ⇒ Identity
Returns a new instance of Identity.
8 9 10 |
# File 'lib/viisp/auth/identity.rb', line 8 def initialize(doc) @doc = doc end |
Instance Attribute Details
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
6 7 8 |
# File 'lib/viisp/auth/identity.rb', line 6 def doc @doc end |
Instance Method Details
#to_hash ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/viisp/auth/identity.rb', line 12 def to_hash { 'authentication_provider' => element_text('authenticationProvider'), 'attributes' => attributes, 'user_information' => user_information, 'custom_data' => element_text('customData'), 'source_data' => source_data, } end |