Class: Cadenya::Types::RotateAPIKeyRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::RotateAPIKeyRequest
- 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) ⇒ RotateAPIKeyRequest
constructor
A new instance of RotateAPIKeyRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, id: nil) ⇒ RotateAPIKeyRequest
Returns a new instance of RotateAPIKeyRequest.
4877 4878 4879 4880 |
# File 'lib/cadenya/types.rb', line 4877 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.
4875 4876 4877 |
# File 'lib/cadenya/types.rb', line 4875 def id @id end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
4875 4876 4877 |
# File 'lib/cadenya/types.rb', line 4875 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
4882 4883 4884 4885 4886 4887 |
# File 'lib/cadenya/types.rb', line 4882 def self.from_json(data) new( workspace_id: data["workspaceId"], id: data["id"], ) end |