Class: Browserbeam::SessionList
- Inherits:
-
Struct
- Object
- Struct
- Browserbeam::SessionList
- Defined in:
- lib/browserbeam/types.rb
Instance Attribute Summary collapse
-
#has_more ⇒ Object
Returns the value of attribute has_more.
-
#next_cursor ⇒ Object
Returns the value of attribute next_cursor.
-
#sessions ⇒ Object
Returns the value of attribute sessions.
Class Method Summary collapse
Instance Attribute Details
#has_more ⇒ Object
Returns the value of attribute has_more
126 127 128 |
# File 'lib/browserbeam/types.rb', line 126 def has_more @has_more end |
#next_cursor ⇒ Object
Returns the value of attribute next_cursor
126 127 128 |
# File 'lib/browserbeam/types.rb', line 126 def next_cursor @next_cursor end |
#sessions ⇒ Object
Returns the value of attribute sessions
126 127 128 |
# File 'lib/browserbeam/types.rb', line 126 def sessions @sessions end |
Class Method Details
.from_hash(data) ⇒ Object
127 128 129 130 131 132 133 |
# File 'lib/browserbeam/types.rb', line 127 def self.from_hash(data) new( sessions: (data["sessions"] || []).map { |s| SessionListItem.from_hash(s) }, has_more: data["has_more"] || false, next_cursor: data["next_cursor"], ) end |