Class: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext

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

Overview

Output only. The type of platform the restriction applies to.

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) ⇒ PlatformContext

Returns a new instance of PlatformContext.



3093
3094
3095
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3093

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

Instance Attribute Details

#platformsArray<String>

The platforms this restriction applies to. Corresponds to the JSON property platforms

Returns:

  • (Array<String>)


3091
3092
3093
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3091

def platforms
  @platforms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3098
3099
3100
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3098

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