Class: Google::Apis::DfareportingV4::OperatingSystemVersion

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 a particular version of an operating system that can be targeted by ads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperatingSystemVersion

Returns a new instance of OperatingSystemVersion.



8415
8416
8417
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8415

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

Instance Attribute Details

#idFixnum

ID of this operating system version. Corresponds to the JSON property id

Returns:

  • (Fixnum)


8387
8388
8389
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8387

def id
  @id
end

#kindString

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

Returns:

  • (String)


8393
8394
8395
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8393

def kind
  @kind
end

#major_versionString

Major version (leftmost number) of this operating system version. Corresponds to the JSON property majorVersion

Returns:

  • (String)


8398
8399
8400
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8398

def major_version
  @major_version
end

#minor_versionString

Minor version (number after the first dot) of this operating system version. Corresponds to the JSON property minorVersion

Returns:

  • (String)


8403
8404
8405
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8403

def minor_version
  @minor_version
end

#nameString

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

Returns:

  • (String)


8408
8409
8410
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8408

def name
  @name
end

#operating_systemGoogle::Apis::DfareportingV4::OperatingSystem

Contains information about an operating system that can be targeted by ads. Corresponds to the JSON property operatingSystem



8413
8414
8415
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8413

def operating_system
  @operating_system
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8420
8421
8422
8423
8424
8425
8426
8427
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8420

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @major_version = args[:major_version] if args.key?(:major_version)
  @minor_version = args[:minor_version] if args.key?(:minor_version)
  @name = args[:name] if args.key?(:name)
  @operating_system = args[:operating_system] if args.key?(:operating_system)
end