Class: StackOne::Models::Shared::TaskCommentApiModel
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::TaskCommentApiModel
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/taskcommentapimodel.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(author_employee_id: nil, comment: nil, created_at: nil) ⇒ TaskCommentApiModel
constructor
A new instance of TaskCommentApiModel.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(author_employee_id: nil, comment: nil, created_at: nil) ⇒ TaskCommentApiModel
Returns a new instance of TaskCommentApiModel.
23 24 25 26 27 |
# File 'lib/stack_one/models/shared/taskcommentapimodel.rb', line 23 def initialize(author_employee_id: nil, comment: nil, created_at: nil) @author_employee_id = @comment = comment @created_at = created_at end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/stack_one/models/shared/taskcommentapimodel.rb', line 30 def ==(other) return false unless other.is_a? self.class return false unless @author_employee_id == other. return false unless @comment == other.comment return false unless @created_at == other.created_at true end |