Class: Google::Apis::SafebrowsingV4::Checksum
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::Checksum
- 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
The expected state of a client's local database.
Instance Attribute Summary collapse
-
#sha256 ⇒ String
The SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Checksum
constructor
A new instance of Checksum.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Checksum
Returns a new instance of Checksum
36 37 38 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 36 def initialize(**args) update!(**args) end |
Instance Attribute Details
#sha256 ⇒ String
The SHA256 hash of the client state; that is, of the sorted list of all
hashes present in the database.
Corresponds to the JSON property sha256
NOTE: Values are automatically base64 encoded/decoded in the client library.
34 35 36 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 34 def sha256 @sha256 end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
41 42 43 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 41 def update!(**args) @sha256 = args[:sha256] if args.key?(:sha256) end |