Class: Cadenya::Types::RestoreToolRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::RestoreToolRequest
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#tool_set_id ⇒ Object
readonly
Returns the value of attribute tool_set_id.
-
#workspace_id ⇒ Object
readonly
Returns the value of attribute workspace_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(workspace_id: nil, tool_set_id: nil, id: nil) ⇒ RestoreToolRequest
constructor
A new instance of RestoreToolRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, tool_set_id: nil, id: nil) ⇒ RestoreToolRequest
Returns a new instance of RestoreToolRequest.
4774 4775 4776 4777 4778 |
# File 'lib/cadenya/types.rb', line 4774 def initialize(workspace_id: nil, tool_set_id: nil, id: nil) @workspace_id = workspace_id @tool_set_id = tool_set_id @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4772 4773 4774 |
# File 'lib/cadenya/types.rb', line 4772 def id @id end |
#tool_set_id ⇒ Object (readonly)
Returns the value of attribute tool_set_id.
4772 4773 4774 |
# File 'lib/cadenya/types.rb', line 4772 def tool_set_id @tool_set_id end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
4772 4773 4774 |
# File 'lib/cadenya/types.rb', line 4772 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
4780 4781 4782 4783 4784 4785 4786 |
# File 'lib/cadenya/types.rb', line 4780 def self.from_json(data) new( workspace_id: data["workspaceId"], tool_set_id: data["toolSetId"], id: data["id"], ) end |