Class: Google::Apis::DfareportingV4::OperatingSystem

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperatingSystem

Returns a new instance of OperatingSystem.



8220
8221
8222
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8220

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)


8195
8196
8197
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8195

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)


8200
8201
8202
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8200

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)


8207
8208
8209
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8207

def kind
  @kind
end

#mobileBoolean Also known as: mobile?

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

Returns:

  • (Boolean)


8212
8213
8214
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8212

def mobile
  @mobile
end

#nameString

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

Returns:

  • (String)


8218
8219
8220
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8218

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8225
8226
8227
8228
8229
8230
8231
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8225

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