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
117 118 119 |
# File 'lib/browserbeam/types.rb', line 117 def has_more @has_more end |
#next_cursor ⇒ Object
Returns the value of attribute next_cursor
117 118 119 |
# File 'lib/browserbeam/types.rb', line 117 def next_cursor @next_cursor end |
#sessions ⇒ Object
Returns the value of attribute sessions
117 118 119 |
# File 'lib/browserbeam/types.rb', line 117 def sessions @sessions end |
Class Method Details
.from_hash(data) ⇒ Object
118 119 120 121 122 123 124 |
# File 'lib/browserbeam/types.rb', line 118 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 |