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.
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#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 |
#error_code ⇒ Object
Returns the value of attribute error_code
98 99 100 |
# File 'lib/browserbeam/types.rb', line 98 def error_code @error_code end |
#error_message ⇒ Object
Returns the value of attribute error_message
98 99 100 |
# File 'lib/browserbeam/types.rb', line 98 def @error_message 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
101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/browserbeam/types.rb', line 101 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"] || "", error_code: data["error_code"], error_message: data["error_message"] ) end |