Class: Copilot::SessionMetadata

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

Overview

Metadata about a session.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#is_remoteObject

Returns the value of attribute is_remote

Returns:

  • (Object)

    the current value of is_remote



442
443
444
# File 'lib/copilot/types.rb', line 442

def is_remote
  @is_remote
end

#modified_timeObject

Returns the value of attribute modified_time

Returns:

  • (Object)

    the current value of modified_time



442
443
444
# File 'lib/copilot/types.rb', line 442

def modified_time
  @modified_time
end

#session_idObject

Returns the value of attribute session_id

Returns:

  • (Object)

    the current value of session_id



442
443
444
# File 'lib/copilot/types.rb', line 442

def session_id
  @session_id
end

#start_timeObject

Returns the value of attribute start_time

Returns:

  • (Object)

    the current value of start_time



442
443
444
# File 'lib/copilot/types.rb', line 442

def start_time
  @start_time
end

#summaryObject

Returns the value of attribute summary

Returns:

  • (Object)

    the current value of summary



442
443
444
# File 'lib/copilot/types.rb', line 442

def summary
  @summary
end

Class Method Details

.from_hash(h) ⇒ Object



446
447
448
449
450
451
452
453
454
# File 'lib/copilot/types.rb', line 446

def self.from_hash(h)
  new(
    session_id: h["sessionId"],
    start_time: h["startTime"],
    modified_time: h["modifiedTime"],
    summary: h["summary"],
    is_remote: h["isRemote"]
  )
end