Class: StackOne::Models::Shared::TicketingComment

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/ticketingcomment.rb

Instance Method Summary collapse

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) ⇒ TicketingComment

Returns a new instance of TicketingComment.



33
34
35
36
37
38
39
40
41
42
# File 'lib/stack_one/models/shared/ticketingcomment.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/ticketingcomment.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