Class: Google::Apis::AndroidpublisherV3::CatalogSdkVersion

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

Overview

Defines a range of SDK versions. A device is considered compatible uf its\ SDK version falls within the min_sdk_version and max_sdk_version range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CatalogSdkVersion

Returns a new instance of CatalogSdkVersion.



2337
2338
2339
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2337

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

Instance Attribute Details

#max_sdk_versionFixnum

The maximum SDK version required for the app (inclusive). Corresponds to the JSON property maxSdkVersion

Returns:

  • (Fixnum)


2325
2326
2327
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2325

def max_sdk_version
  @max_sdk_version
end

#min_sdk_versionFixnum

The minimum SDK version required for the app (inclusive). Corresponds to the JSON property minSdkVersion

Returns:

  • (Fixnum)


2330
2331
2332
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2330

def min_sdk_version
  @min_sdk_version
end

#target_sdk_versionFixnum

The target SDK version for the app. Corresponds to the JSON property targetSdkVersion

Returns:

  • (Fixnum)


2335
2336
2337
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2335

def target_sdk_version
  @target_sdk_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2342
2343
2344
2345
2346
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2342

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