Class: CodexSDK::Items::CommandExecution

Inherits:
Data
  • Object
show all
Defined in:
lib/codex_sdk/items.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#aggregated_outputObject (readonly)

Returns the value of attribute aggregated_output

Returns:

  • (Object)

    the current value of aggregated_output



32
33
34
# File 'lib/codex_sdk/items.rb', line 32

def aggregated_output
  @aggregated_output
end

#commandObject (readonly)

Returns the value of attribute command

Returns:

  • (Object)

    the current value of command



32
33
34
# File 'lib/codex_sdk/items.rb', line 32

def command
  @command
end

#exit_codeObject (readonly)

Returns the value of attribute exit_code

Returns:

  • (Object)

    the current value of exit_code



32
33
34
# File 'lib/codex_sdk/items.rb', line 32

def exit_code
  @exit_code
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



32
33
34
# File 'lib/codex_sdk/items.rb', line 32

def id
  @id
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



32
33
34
# File 'lib/codex_sdk/items.rb', line 32

def status
  @status
end

Class Method Details

.from_json(data) ⇒ Object



33
34
35
36
37
38
39
40
41
# File 'lib/codex_sdk/items.rb', line 33

def self.from_json(data)
  new(
    id: data["id"],
    command: data["command"].to_s,
    aggregated_output: data["aggregated_output"].to_s,
    exit_code: data["exit_code"],
    status: data["status"].to_s
  )
end