Class: Moov::Models::Components::CreateTicket

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/createticket.rb

Overview

Request to create a new support ticket.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(title:, body:, contact:, author: nil, foreign_id: nil) ⇒ CreateTicket

Returns a new instance of CreateTicket.



27
28
29
30
31
32
33
# File 'lib/moov/models/components/createticket.rb', line 27

def initialize(title:, body:, contact:, author: nil, foreign_id: nil)
  @title = title
  @body = body
  @contact = contact
  @author = author
  @foreign_id = foreign_id
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/moov/models/components/createticket.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @title == other.title
  return false unless @body == other.body
  return false unless @contact == other.contact
  return false unless @author == other.author
  return false unless @foreign_id == other.foreign_id
  true
end