Class: Cadenya::Types::UnarchiveAgentRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::UnarchiveAgentRequest
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#workspace_id ⇒ Object
readonly
Returns the value of attribute workspace_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(workspace_id: nil, id: nil) ⇒ UnarchiveAgentRequest
constructor
A new instance of UnarchiveAgentRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, id: nil) ⇒ UnarchiveAgentRequest
Returns a new instance of UnarchiveAgentRequest.
6446 6447 6448 6449 |
# File 'lib/cadenya/types.rb', line 6446 def initialize(workspace_id: nil, id: nil) @workspace_id = workspace_id @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6444 6445 6446 |
# File 'lib/cadenya/types.rb', line 6444 def id @id end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
6444 6445 6446 |
# File 'lib/cadenya/types.rb', line 6444 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
6451 6452 6453 6454 6455 6456 |
# File 'lib/cadenya/types.rb', line 6451 def self.from_json(data) new( workspace_id: data["workspaceId"], id: data["id"], ) end |