Class: WorkOS::Passwordless::PasswordlessSession
- Inherits:
-
Struct
- Object
- Struct
- WorkOS::Passwordless::PasswordlessSession
- Defined in:
- lib/workos/passwordless.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#link ⇒ Object
Returns the value of attribute link.
-
#object ⇒ Object
Returns the value of attribute object.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email
15 16 17 |
# File 'lib/workos/passwordless.rb', line 15 def email @email end |
#expires_at ⇒ Object
Returns the value of attribute expires_at
15 16 17 |
# File 'lib/workos/passwordless.rb', line 15 def expires_at @expires_at end |
#id ⇒ Object
Returns the value of attribute id
15 16 17 |
# File 'lib/workos/passwordless.rb', line 15 def id @id end |
#link ⇒ Object
Returns the value of attribute link
15 16 17 |
# File 'lib/workos/passwordless.rb', line 15 def link @link end |
#object ⇒ Object
Returns the value of attribute object
15 16 17 |
# File 'lib/workos/passwordless.rb', line 15 def object @object end |
Class Method Details
.from_hash(hash) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/workos/passwordless.rb', line 16 def self.from_hash(hash) new( id: hash["id"], email: hash["email"], expires_at: hash["expires_at"], link: hash["link"], object: hash["object"] || "passwordless_session" ) end |
Instance Method Details
#to_h ⇒ Object
26 27 28 |
# File 'lib/workos/passwordless.rb', line 26 def to_h super.compact end |