Class: Google::Apis::PlayintegrityV1::DeviceAttributes

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

Overview

Contains information about the device for which the integrity token was generated, e.g. Android SDK version.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceAttributes

Returns a new instance of DeviceAttributes.



201
202
203
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 201

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

Instance Attribute Details

#sdk_versionFixnum

Android SDK version of the device, as defined in the public Android documentation: https://developer.android.com/reference/android/os/Build. VERSION_CODES. It won't be set if a necessary requirement was missed. For example DeviceIntegrity did not meet the minimum bar. Corresponds to the JSON property sdkVersion

Returns:

  • (Fixnum)


199
200
201
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 199

def sdk_version
  @sdk_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



206
207
208
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 206

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