Class: StackOne::Models::Shared::TicketingCommentResultData
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::TicketingCommentResultData
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/ticketingcommentresult_data.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(ticket_id:, content: nil, created_at: nil, id: nil, internal: nil, remote_id: nil, updated_at: nil, user_id: nil) ⇒ TicketingCommentResultData
constructor
A new instance of TicketingCommentResultData.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(ticket_id:, content: nil, created_at: nil, id: nil, internal: nil, remote_id: nil, updated_at: nil, user_id: nil) ⇒ TicketingCommentResultData
Returns a new instance of TicketingCommentResultData.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/stack_one/models/shared/ticketingcommentresult_data.rb', line 33 def initialize(ticket_id:, content: nil, created_at: nil, id: nil, internal: nil, remote_id: nil, updated_at: nil, user_id: nil) @ticket_id = ticket_id @content = content @created_at = created_at @id = id @internal = internal @remote_id = remote_id @updated_at = updated_at @user_id = user_id end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/stack_one/models/shared/ticketingcommentresult_data.rb', line 45 def ==(other) return false unless other.is_a? self.class return false unless @ticket_id == other.ticket_id return false unless @content == other.content return false unless @created_at == other.created_at return false unless @id == other.id return false unless @internal == other.internal return false unless @remote_id == other.remote_id return false unless @updated_at == other.updated_at return false unless @user_id == other.user_id true end |