Class: StackOne::Models::Shared::TicketingAttachmentResultData
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::TicketingAttachmentResultData
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/ticketingattachmentresult_data.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(created_at: nil, file_format: nil, file_name: nil, file_url: nil, id: nil, remote_id: nil, size: nil, ticket_id: nil, updated_at: nil, user_id: nil) ⇒ TicketingAttachmentResultData
constructor
A new instance of TicketingAttachmentResultData.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(created_at: nil, file_format: nil, file_name: nil, file_url: nil, id: nil, remote_id: nil, size: nil, ticket_id: nil, updated_at: nil, user_id: nil) ⇒ TicketingAttachmentResultData
Returns a new instance of TicketingAttachmentResultData.
37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/stack_one/models/shared/ticketingattachmentresult_data.rb', line 37 def initialize(created_at: nil, file_format: nil, file_name: nil, file_url: nil, id: nil, remote_id: nil, size: nil, ticket_id: nil, updated_at: nil, user_id: nil) @created_at = created_at @file_format = file_format @file_name = file_name @file_url = file_url @id = id @remote_id = remote_id @size = size @ticket_id = ticket_id @updated_at = updated_at @user_id = user_id end |
Instance Method Details
#==(other) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/stack_one/models/shared/ticketingattachmentresult_data.rb', line 51 def ==(other) return false unless other.is_a? self.class return false unless @created_at == other.created_at return false unless @file_format == other.file_format return false unless @file_name == other.file_name return false unless @file_url == other.file_url return false unless @id == other.id return false unless @remote_id == other.remote_id return false unless @size == other.size return false unless @ticket_id == other.ticket_id return false unless @updated_at == other.updated_at return false unless @user_id == other.user_id true end |