Class: Cadenya::Types::ObjectiveEventData_SubAgentSpawned
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveEventData_SubAgentSpawned
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#sub_agent_spawned ⇒ Object
readonly
Returns the value of attribute sub_agent_spawned.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, sub_agent_spawned: nil) ⇒ ObjectiveEventData_SubAgentSpawned
constructor
A new instance of ObjectiveEventData_SubAgentSpawned.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, sub_agent_spawned: nil) ⇒ ObjectiveEventData_SubAgentSpawned
Returns a new instance of ObjectiveEventData_SubAgentSpawned.
8826 8827 8828 8829 |
# File 'lib/cadenya/types.rb', line 8826 def initialize(type: nil, sub_agent_spawned: nil) @type = type @sub_agent_spawned = sub_agent_spawned end |
Instance Attribute Details
#sub_agent_spawned ⇒ Object (readonly)
Returns the value of attribute sub_agent_spawned.
8824 8825 8826 |
# File 'lib/cadenya/types.rb', line 8824 def sub_agent_spawned @sub_agent_spawned end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8824 8825 8826 |
# File 'lib/cadenya/types.rb', line 8824 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
8831 8832 8833 8834 8835 8836 |
# File 'lib/cadenya/types.rb', line 8831 def self.from_json(data) new( type: data["type"], sub_agent_spawned: data["subAgentSpawned"].nil? ? nil : Types::SubAgentSpawned.from_json(data["subAgentSpawned"]), ) end |