Class: Cadenya::Types::ArchiveAgentRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::ArchiveAgentRequest
- 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) ⇒ ArchiveAgentRequest
constructor
A new instance of ArchiveAgentRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, id: nil) ⇒ ArchiveAgentRequest
Returns a new instance of ArchiveAgentRequest.
867 868 869 870 |
# File 'lib/cadenya/types.rb', line 867 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.
865 866 867 |
# File 'lib/cadenya/types.rb', line 865 def id @id end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
865 866 867 |
# File 'lib/cadenya/types.rb', line 865 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
872 873 874 875 876 877 |
# File 'lib/cadenya/types.rb', line 872 def self.from_json(data) new( workspace_id: data["workspaceId"], id: data["id"], ) end |