Class: Moov::Models::Components::Ticket
- Inherits:
-
Object
- Object
- Moov::Models::Components::Ticket
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/ticket.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(ticket_id:, number:, title:, contact:, status:, created_on:, updated_on:, latest_message_on: nil, closed_on: nil) ⇒ Ticket
constructor
A new instance of Ticket.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(ticket_id:, number:, title:, contact:, status:, created_on:, updated_on:, latest_message_on: nil, closed_on: nil) ⇒ Ticket
Returns a new instance of Ticket.
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/moov/models/components/ticket.rb', line 36 def initialize(ticket_id:, number:, title:, contact:, status:, created_on:, updated_on:, latest_message_on: nil, closed_on: nil) @ticket_id = ticket_id @number = number @title = title @contact = contact @status = status @created_on = created_on @updated_on = updated_on @latest_message_on = @closed_on = closed_on end |
Instance Method Details
#==(other) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/moov/models/components/ticket.rb', line 49 def ==(other) return false unless other.is_a? self.class return false unless @ticket_id == other.ticket_id return false unless @number == other.number return false unless @title == other.title return false unless @contact == other.contact return false unless @status == other.status return false unless @created_on == other.created_on return false unless @updated_on == other.updated_on return false unless @latest_message_on == other. return false unless @closed_on == other.closed_on true end |