Class: Cadenya::Types::CancelObjectiveRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::CancelObjectiveRequest
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#objective_id ⇒ Object
readonly
Returns the value of attribute objective_id.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#workspace_id ⇒ Object
readonly
Returns the value of attribute workspace_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(workspace_id: nil, objective_id: nil, reason: nil) ⇒ CancelObjectiveRequest
constructor
A new instance of CancelObjectiveRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, objective_id: nil, reason: nil) ⇒ CancelObjectiveRequest
Returns a new instance of CancelObjectiveRequest.
1048 1049 1050 1051 1052 |
# File 'lib/cadenya/types.rb', line 1048 def initialize(workspace_id: nil, objective_id: nil, reason: nil) @workspace_id = workspace_id @objective_id = objective_id @reason = reason end |
Instance Attribute Details
#objective_id ⇒ Object (readonly)
Returns the value of attribute objective_id.
1046 1047 1048 |
# File 'lib/cadenya/types.rb', line 1046 def objective_id @objective_id end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
1046 1047 1048 |
# File 'lib/cadenya/types.rb', line 1046 def reason @reason end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
1046 1047 1048 |
# File 'lib/cadenya/types.rb', line 1046 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
1054 1055 1056 1057 1058 1059 1060 |
# File 'lib/cadenya/types.rb', line 1054 def self.from_json(data) new( workspace_id: data["workspaceId"], objective_id: data["objectiveId"], reason: data["reason"], ) end |