Class: Google::Apis::ToolresultsV1beta3::CpuInfo

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

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

Returns a new instance of CpuInfo.



517
518
519
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 517

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

Instance Attribute Details

#cpu_processorString

description of the device processor ie '1.8 GHz hexa core 64-bit ARMv8-A' Corresponds to the JSON property cpuProcessor

Returns:

  • (String)


505
506
507
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 505

def cpu_processor
  @cpu_processor
end

#cpu_speed_in_ghzFloat

the CPU clock speed in GHz Corresponds to the JSON property cpuSpeedInGhz

Returns:

  • (Float)


510
511
512
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 510

def cpu_speed_in_ghz
  @cpu_speed_in_ghz
end

#number_of_coresFixnum

the number of CPU cores Corresponds to the JSON property numberOfCores

Returns:

  • (Fixnum)


515
516
517
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 515

def number_of_cores
  @number_of_cores
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



522
523
524
525
526
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 522

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