Class: Copilot::SessionLifecycleMetadata

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

Overview

Session lifecycle event metadata.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#modified_timeObject

Returns the value of attribute modified_time

Returns:

  • (Object)

    the current value of modified_time



537
538
539
# File 'lib/copilot/types.rb', line 537

def modified_time
  @modified_time
end

#start_timeObject

Returns the value of attribute start_time

Returns:

  • (Object)

    the current value of start_time



537
538
539
# File 'lib/copilot/types.rb', line 537

def start_time
  @start_time
end

#summaryObject

Returns the value of attribute summary

Returns:

  • (Object)

    the current value of summary



537
538
539
# File 'lib/copilot/types.rb', line 537

def summary
  @summary
end

Class Method Details

.from_hash(h) ⇒ Object



538
539
540
541
542
543
544
# File 'lib/copilot/types.rb', line 538

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