Class: Google::Apis::HomegraphV1::UserBlameStruct

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/homegraph_v1/classes.rb,
lib/google/apis/homegraph_v1/representations.rb,
lib/google/apis/homegraph_v1/representations.rb

Overview

Contains metadata about the cause of presence state change attributed to a user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserBlameStruct

Returns a new instance of UserBlameStruct.



1391
1392
1393
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1391

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#blame_typeString

Required. Specifies the user blame type. Corresponds to the JSON property blameType

Returns:

  • (String)


1384
1385
1386
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1384

def blame_type
  @blame_type
end

#user_emailString

Required. Specifies the email of the user. Corresponds to the JSON property userEmail

Returns:

  • (String)


1389
1390
1391
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1389

def user_email
  @user_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1396
1397
1398
1399
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1396

def update!(**args)
  @blame_type = args[:blame_type] if args.key?(:blame_type)
  @user_email = args[:user_email] if args.key?(:user_email)
end