Class: StackOne::Models::Shared::MessagingMessageResultAuthor
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::MessagingMessageResultAuthor
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/messagingmessageresult_author.rb
Overview
Author of the message
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(active: nil, created_at: nil, email: nil, external_reference: nil, id: nil, name: nil, phone_number: nil, remote_id: nil, unified_custom_fields: nil, updated_at: nil) ⇒ MessagingMessageResultAuthor
constructor
A new instance of MessagingMessageResultAuthor.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(active: nil, created_at: nil, email: nil, external_reference: nil, id: nil, name: nil, phone_number: nil, remote_id: nil, unified_custom_fields: nil, updated_at: nil) ⇒ MessagingMessageResultAuthor
Returns a new instance of MessagingMessageResultAuthor.
37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/stack_one/models/shared/messagingmessageresult_author.rb', line 37 def initialize(active: nil, created_at: nil, email: nil, external_reference: nil, id: nil, name: nil, phone_number: nil, remote_id: nil, unified_custom_fields: nil, updated_at: nil) @active = active @created_at = created_at @email = email @external_reference = external_reference @id = id @name = name @phone_number = phone_number @remote_id = remote_id @unified_custom_fields = unified_custom_fields @updated_at = updated_at 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/messagingmessageresult_author.rb', line 51 def ==(other) return false unless other.is_a? self.class return false unless @active == other.active return false unless @created_at == other.created_at return false unless @email == other.email return false unless @external_reference == other.external_reference return false unless @id == other.id return false unless @name == other.name return false unless @phone_number == other.phone_number return false unless @remote_id == other.remote_id return false unless @unified_custom_fields == other.unified_custom_fields return false unless @updated_at == other.updated_at true end |