Class: Google::Apis::DfareportingV3_2::OperatingSystem

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

Overview

Contains information about an operating system that can be targeted by ads.

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

Returns a new instance of OperatingSystem



7686
7687
7688
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 7686

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

Instance Attribute Details

#dart_idFixnum

DART ID of this operating system. This is the ID used for targeting. Corresponds to the JSON property dartId

Returns:

  • (Fixnum)


7661
7662
7663
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 7661

def dart_id
  @dart_id
end

#desktopBoolean Also known as: desktop?

Whether this operating system is for desktop. Corresponds to the JSON property desktop

Returns:

  • (Boolean)


7666
7667
7668
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 7666

def desktop
  @desktop
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#operatingSystem". Corresponds to the JSON property kind

Returns:

  • (String)


7673
7674
7675
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 7673

def kind
  @kind
end

#mobileBoolean Also known as: mobile?

Whether this operating system is for mobile. Corresponds to the JSON property mobile

Returns:

  • (Boolean)


7678
7679
7680
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 7678

def mobile
  @mobile
end

#nameString

Name of this operating system. Corresponds to the JSON property name

Returns:

  • (String)


7684
7685
7686
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 7684

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7691
7692
7693
7694
7695
7696
7697
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 7691

def update!(**args)
  @dart_id = args[:dart_id] if args.key?(:dart_id)
  @desktop = args[:desktop] if args.key?(:desktop)
  @kind = args[:kind] if args.key?(:kind)
  @mobile = args[:mobile] if args.key?(:mobile)
  @name = args[:name] if args.key?(:name)
end