Class: Cadenya::Types::UpdateAgentVariationMemoryLayerRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::UpdateAgentVariationMemoryLayerRequest
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#agent_id ⇒ Object
readonly
Returns the value of attribute agent_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#variation_id ⇒ Object
readonly
Returns the value of attribute variation_id.
-
#workspace_id ⇒ Object
readonly
Returns the value of attribute workspace_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(workspace_id: nil, agent_id: nil, variation_id: nil, id: nil, position: nil) ⇒ UpdateAgentVariationMemoryLayerRequest
constructor
A new instance of UpdateAgentVariationMemoryLayerRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, agent_id: nil, variation_id: nil, id: nil, position: nil) ⇒ UpdateAgentVariationMemoryLayerRequest
Returns a new instance of UpdateAgentVariationMemoryLayerRequest.
6695 6696 6697 6698 6699 6700 6701 |
# File 'lib/cadenya/types.rb', line 6695 def initialize(workspace_id: nil, agent_id: nil, variation_id: nil, id: nil, position: nil) @workspace_id = workspace_id @agent_id = agent_id @variation_id = variation_id @id = id @position = position end |
Instance Attribute Details
#agent_id ⇒ Object (readonly)
Returns the value of attribute agent_id.
6693 6694 6695 |
# File 'lib/cadenya/types.rb', line 6693 def agent_id @agent_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6693 6694 6695 |
# File 'lib/cadenya/types.rb', line 6693 def id @id end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
6693 6694 6695 |
# File 'lib/cadenya/types.rb', line 6693 def position @position end |
#variation_id ⇒ Object (readonly)
Returns the value of attribute variation_id.
6693 6694 6695 |
# File 'lib/cadenya/types.rb', line 6693 def variation_id @variation_id end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
6693 6694 6695 |
# File 'lib/cadenya/types.rb', line 6693 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
6703 6704 6705 6706 6707 6708 6709 6710 6711 |
# File 'lib/cadenya/types.rb', line 6703 def self.from_json(data) new( workspace_id: data["workspaceId"], agent_id: data["agentId"], variation_id: data["variationId"], id: data["id"], position: data["position"], ) end |
Instance Method Details
#to_h ⇒ Object
6713 6714 6715 6716 6717 6718 6719 6720 6721 |
# File 'lib/cadenya/types.rb', line 6713 def to_h { workspace_id: Util.plain(@workspace_id), agent_id: Util.plain(@agent_id), variation_id: Util.plain(@variation_id), id: Util.plain(@id), position: Util.plain(@position), }.reject { |_k, v| v.nil? } end |