Class: Cadenya::Types::UnpublishAgentRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::UnpublishAgentRequest
- 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) ⇒ UnpublishAgentRequest
constructor
A new instance of UnpublishAgentRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, id: nil) ⇒ UnpublishAgentRequest
Returns a new instance of UnpublishAgentRequest.
6515 6516 6517 6518 |
# File 'lib/cadenya/types.rb', line 6515 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.
6513 6514 6515 |
# File 'lib/cadenya/types.rb', line 6513 def id @id end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
6513 6514 6515 |
# File 'lib/cadenya/types.rb', line 6513 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
6520 6521 6522 6523 6524 6525 |
# File 'lib/cadenya/types.rb', line 6520 def self.from_json(data) new( workspace_id: data["workspaceId"], id: data["id"], ) end |