Class: StackOne::Models::Shared::IamUser

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(avatar: nil, created_at: nil, first_name: nil, groups: nil, id: nil, is_bot_user: nil, last_active_at: nil, last_login_at: nil, last_name: nil, multi_factor_enabled: nil, name: nil, primary_email_address: nil, remote_id: nil, roles: nil, status: nil, unified_custom_fields: nil, updated_at: nil, username: nil) ⇒ IamUser

Returns a new instance of IamUser.



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/stack_one/models/shared/iamuser.rb', line 53

def initialize(avatar: nil, created_at: nil, first_name: nil, groups: nil, id: nil, is_bot_user: nil, last_active_at: nil, last_login_at: nil, last_name: nil, multi_factor_enabled: nil, name: nil, primary_email_address: nil, remote_id: nil, roles: nil, status: nil, unified_custom_fields: nil, updated_at: nil, username: nil)
  @avatar = avatar
  @created_at = created_at
  @first_name = first_name
  @groups = groups
  @id = id
  @is_bot_user = is_bot_user
  @last_active_at = last_active_at
  @last_login_at = 
  @last_name = last_name
  @multi_factor_enabled = multi_factor_enabled
  @name = name
  @primary_email_address = primary_email_address
  @remote_id = remote_id
  @roles = roles
  @status = status
  @unified_custom_fields = unified_custom_fields
  @updated_at = updated_at
  @username = username
end

Instance Method Details

#==(other) ⇒ Object



75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/stack_one/models/shared/iamuser.rb', line 75

def ==(other)
  return false unless other.is_a? self.class
  return false unless @avatar == other.avatar
  return false unless @created_at == other.created_at
  return false unless @first_name == other.first_name
  return false unless @groups == other.groups
  return false unless @id == other.id
  return false unless @is_bot_user == other.is_bot_user
  return false unless @last_active_at == other.last_active_at
  return false unless @last_login_at == other.
  return false unless @last_name == other.last_name
  return false unless @multi_factor_enabled == other.multi_factor_enabled
  return false unless @name == other.name
  return false unless @primary_email_address == other.primary_email_address
  return false unless @remote_id == other.remote_id
  return false unless @roles == other.roles
  return false unless @status == other.status
  return false unless @unified_custom_fields == other.unified_custom_fields
  return false unless @updated_at == other.updated_at
  return false unless @username == other.username
  true
end