Class: StackOne::Models::Shared::TicketingUserResultData

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(active: nil, created_at: nil, customer_account_reference: nil, first_name: nil, id: nil, last_name: nil, name: nil, primary_email: nil, primary_phone: nil, remote_id: nil, type: nil, updated_at: nil, username: nil) ⇒ TicketingUserResultData

Returns a new instance of TicketingUserResultData.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/stack_one/models/shared/ticketinguserresult_data.rb', line 43

def initialize(active: nil, created_at: nil, customer_account_reference: nil, first_name: nil, id: nil, last_name: nil, name: nil, primary_email: nil, primary_phone: nil, remote_id: nil, type: nil, updated_at: nil, username: nil)
  @active = active
  @created_at = created_at
  @customer_account_reference = 
  @first_name = first_name
  @id = id
  @last_name = last_name
  @name = name
  @primary_email = primary_email
  @primary_phone = primary_phone
  @remote_id = remote_id
  @type = type
  @updated_at = updated_at
  @username = username
end

Instance Method Details

#==(other) ⇒ Object



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/stack_one/models/shared/ticketinguserresult_data.rb', line 60

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 @customer_account_reference == other.
  return false unless @first_name == other.first_name
  return false unless @id == other.id
  return false unless @last_name == other.last_name
  return false unless @name == other.name
  return false unless @primary_email == other.primary_email
  return false unless @primary_phone == other.primary_phone
  return false unless @remote_id == other.remote_id
  return false unless @type == other.type
  return false unless @updated_at == other.updated_at
  return false unless @username == other.username
  true
end