Class: OktaUser
- Inherits:
-
Object
- Object
- OktaUser
- Defined in:
- app/models/okta_user.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#email ⇒ Object
Returns the value of attribute email.
-
#issuer ⇒ Object
Returns the value of attribute issuer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(params) ⇒ OktaUser
constructor
A new instance of OktaUser.
- #populate(params) ⇒ Object
Constructor Details
#initialize(params) ⇒ OktaUser
Returns a new instance of OktaUser.
4 5 6 |
# File 'app/models/okta_user.rb', line 4 def initialize(params) populate(params) end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
2 3 4 |
# File 'app/models/okta_user.rb', line 2 def attributes @attributes end |
#email ⇒ Object
Returns the value of attribute email.
2 3 4 |
# File 'app/models/okta_user.rb', line 2 def email @email end |
#issuer ⇒ Object
Returns the value of attribute issuer.
2 3 4 |
# File 'app/models/okta_user.rb', line 2 def issuer @issuer end |
Class Method Details
.retrieve_from_cookie(cookie_hsh) ⇒ Object
16 17 18 |
# File 'app/models/okta_user.rb', line 16 def self.() self.new() unless .blank? end |
Instance Method Details
#populate(params) ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/models/okta_user.rb', line 8 def populate(params) params.each do |k, v| self.send("#{k}=".to_sym, v) end rescue NoMethodError => error p error end |