Class: Cadenya::Types::DisableAPIKeyRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::DisableAPIKeyRequest
- 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) ⇒ DisableAPIKeyRequest
constructor
A new instance of DisableAPIKeyRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, id: nil) ⇒ DisableAPIKeyRequest
Returns a new instance of DisableAPIKeyRequest.
2157 2158 2159 2160 |
# File 'lib/cadenya/types.rb', line 2157 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.
2155 2156 2157 |
# File 'lib/cadenya/types.rb', line 2155 def id @id end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
2155 2156 2157 |
# File 'lib/cadenya/types.rb', line 2155 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
2162 2163 2164 2165 2166 2167 |
# File 'lib/cadenya/types.rb', line 2162 def self.from_json(data) new( workspace_id: data["workspaceId"], id: data["id"], ) end |