Class: CodexSDK::Items::CommandExecution
- Inherits:
-
Data
- Object
- Data
- CodexSDK::Items::CommandExecution
- Defined in:
- lib/codex_sdk/items.rb
Instance Attribute Summary collapse
-
#aggregated_output ⇒ Object
readonly
Returns the value of attribute aggregated_output.
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Class Method Summary collapse
Instance Attribute Details
#aggregated_output ⇒ Object (readonly)
Returns the value of attribute aggregated_output
32 33 34 |
# File 'lib/codex_sdk/items.rb', line 32 def aggregated_output @aggregated_output end |
#command ⇒ Object (readonly)
Returns the value of attribute command
32 33 34 |
# File 'lib/codex_sdk/items.rb', line 32 def command @command end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code
32 33 34 |
# File 'lib/codex_sdk/items.rb', line 32 def exit_code @exit_code end |
#id ⇒ Object (readonly)
Returns the value of attribute id
32 33 34 |
# File 'lib/codex_sdk/items.rb', line 32 def id @id end |
#status ⇒ Object (readonly)
Returns the value of attribute 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 |