Class: Browserbeam::SessionInfo
- Inherits:
-
Struct
- Object
- Struct
- Browserbeam::SessionInfo
- Defined in:
- lib/browserbeam/types.rb
Instance Attribute Summary collapse
-
#duration_seconds ⇒ Object
Returns the value of attribute duration_seconds.
-
#ended_at ⇒ Object
Returns the value of attribute ended_at.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#started_at ⇒ Object
Returns the value of attribute started_at.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Attribute Details
#duration_seconds ⇒ Object
Returns the value of attribute duration_seconds
98 99 100 |
# File 'lib/browserbeam/types.rb', line 98 def duration_seconds @duration_seconds end |
#ended_at ⇒ Object
Returns the value of attribute ended_at
98 99 100 |
# File 'lib/browserbeam/types.rb', line 98 def ended_at @ended_at end |
#expires_at ⇒ Object
Returns the value of attribute expires_at
98 99 100 |
# File 'lib/browserbeam/types.rb', line 98 def expires_at @expires_at end |
#session_id ⇒ Object
Returns the value of attribute session_id
98 99 100 |
# File 'lib/browserbeam/types.rb', line 98 def session_id @session_id end |
#started_at ⇒ Object
Returns the value of attribute started_at
98 99 100 |
# File 'lib/browserbeam/types.rb', line 98 def started_at @started_at end |
#status ⇒ Object
Returns the value of attribute status
98 99 100 |
# File 'lib/browserbeam/types.rb', line 98 def status @status end |
Class Method Details
.from_hash(data) ⇒ Object
99 100 101 102 103 104 105 106 107 108 |
# File 'lib/browserbeam/types.rb', line 99 def self.from_hash(data) new( session_id: data["session_id"] || "", status: data["status"] || "", started_at: data["started_at"] || "", ended_at: data["ended_at"], duration_seconds: data["duration_seconds"], expires_at: data["expires_at"] || "", ) end |