Class: CldProvisioning::Models::Shared::User
- Inherits:
-
Object
- Object
- CldProvisioning::Models::Shared::User
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/cld_provisioning/models/shared/user.rb
Overview
User details.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id: nil, name: nil, first_name: nil, last_name: nil, role: nil, email: nil, pending: nil, enabled: nil, created_at: nil, updated_at: nil, last_login: nil, all_sub_accounts: nil, providers: nil, email_preferences: nil, account_id: nil, two_factor: nil, status: nil, root: nil, technical_role: nil, group_count: nil, sub_account_count: nil) ⇒ User
constructor
A new instance of User.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id: nil, name: nil, first_name: nil, last_name: nil, role: nil, email: nil, pending: nil, enabled: nil, created_at: nil, updated_at: nil, last_login: nil, all_sub_accounts: nil, providers: nil, email_preferences: nil, account_id: nil, two_factor: nil, status: nil, root: nil, technical_role: nil, group_count: nil, sub_account_count: nil) ⇒ User
Returns a new instance of User.
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
# File 'lib/cld_provisioning/models/shared/user.rb', line 183 def initialize( id: nil, name: nil, first_name: nil, last_name: nil, role: nil, email: nil, pending: nil, enabled: nil, created_at: nil, updated_at: nil, last_login: nil, all_sub_accounts: nil, providers: nil, email_preferences: nil, account_id: nil, two_factor: nil, status: nil, root: nil, technical_role: nil, group_count: nil, sub_account_count: nil ) @id = id @name = name @first_name = first_name @last_name = last_name @role = role @email = email @pending = pending @enabled = enabled @created_at = created_at @updated_at = updated_at @last_login = last_login @all_sub_accounts = all_sub_accounts @providers = providers @email_preferences = email_preferences @account_id = account_id @two_factor = two_factor @status = status @root = root @technical_role = technical_role @group_count = group_count @sub_account_count = sub_account_count end |
Instance Method Details
#==(other) ⇒ Object
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
# File 'lib/cld_provisioning/models/shared/user.rb', line 230 def ==(other) return false unless other.is_a?(self.class) return false unless @id == other.id return false unless @name == other.name return false unless @first_name == other.first_name return false unless @last_name == other.last_name return false unless @role == other.role return false unless @email == other.email return false unless @pending == other.pending return false unless @enabled == other.enabled return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at return false unless @last_login == other.last_login return false unless @all_sub_accounts == other.all_sub_accounts return false unless @providers == other.providers return false unless @email_preferences == other.email_preferences return false unless @account_id == other.account_id return false unless @two_factor == other.two_factor return false unless @status == other.status return false unless @root == other.root return false unless @technical_role == other.technical_role return false unless @group_count == other.group_count return false unless @sub_account_count == other.sub_account_count true end |