Class: Google::Apis::SafebrowsingV4::UserInfo

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

Overview

Details about the user that encountered the threat.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserInfo

Returns a new instance of UserInfo



891
892
893
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 891

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

Instance Attribute Details

#region_codeString

The UN M.49 region code associated with the user's location. Corresponds to the JSON property regionCode

Returns:

  • (String)


883
884
885
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 883

def region_code
  @region_code
end

#user_idString

Unique user identifier defined by the client. Corresponds to the JSON property userId NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


889
890
891
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 889

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



896
897
898
899
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 896

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