Class: Google::Apis::AndroidpublisherV3::DeviceIdentifier

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 device identifier for a device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceIdentifier

Returns a new instance of DeviceIdentifier.



3495
3496
3497
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3495

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

Instance Attribute Details

#device_brandString

The brand of the device. Corresponds to the JSON property deviceBrand

Returns:

  • (String)


3488
3489
3490
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3488

def device_brand
  @device_brand
end

#device_modelString

The model of the device. Corresponds to the JSON property deviceModel

Returns:

  • (String)


3493
3494
3495
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3493

def device_model
  @device_model
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3500
3501
3502
3503
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3500

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