Class: Browserbeam::SessionListItem

Inherits:
Struct
  • Object
show all
Defined in:
lib/browserbeam/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#session_idObject

Returns the value of attribute session_id

Returns:

  • (Object)

    the current value of session_id



111
112
113
# File 'lib/browserbeam/types.rb', line 111

def session_id
  @session_id
end

#started_atObject

Returns the value of attribute started_at

Returns:

  • (Object)

    the current value of started_at



111
112
113
# File 'lib/browserbeam/types.rb', line 111

def started_at
  @started_at
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



111
112
113
# File 'lib/browserbeam/types.rb', line 111

def status
  @status
end

Class Method Details

.from_hash(data) ⇒ Object



112
113
114
# File 'lib/browserbeam/types.rb', line 112

def self.from_hash(data)
  new(session_id: data["session_id"] || "", status: data["status"] || "", started_at: data["started_at"] || "")
end