Class: Browserbeam::SessionListItem
- Inherits:
-
Struct
- Object
- Struct
- Browserbeam::SessionListItem
- Defined in:
- lib/browserbeam/types.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#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
#error_code ⇒ Object
Returns the value of attribute error_code
115 116 117 |
# File 'lib/browserbeam/types.rb', line 115 def error_code @error_code end |
#session_id ⇒ Object
Returns the value of attribute session_id
115 116 117 |
# File 'lib/browserbeam/types.rb', line 115 def session_id @session_id end |
#started_at ⇒ Object
Returns the value of attribute started_at
115 116 117 |
# File 'lib/browserbeam/types.rb', line 115 def started_at @started_at end |
#status ⇒ Object
Returns the value of attribute status
115 116 117 |
# File 'lib/browserbeam/types.rb', line 115 def status @status end |
Class Method Details
.from_hash(data) ⇒ Object
116 117 118 119 120 121 122 123 |
# File 'lib/browserbeam/types.rb', line 116 def self.from_hash(data) new( session_id: data["session_id"] || "", status: data["status"] || "", started_at: data["started_at"] || "", error_code: data["error_code"] ) end |