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

#error_codeObject

Returns the value of attribute error_code

Returns:

  • (Object)

    the current value of error_code



115
116
117
# File 'lib/browserbeam/types.rb', line 115

def error_code
  @error_code
end

#session_idObject

Returns the value of attribute session_id

Returns:

  • (Object)

    the current value of session_id



115
116
117
# File 'lib/browserbeam/types.rb', line 115

def session_id
  @session_id
end

#started_atObject

Returns the value of attribute started_at

Returns:

  • (Object)

    the current value of started_at



115
116
117
# File 'lib/browserbeam/types.rb', line 115

def started_at
  @started_at
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of 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