Class: Google::Apis::ToolresultsV1beta3::CpuInfo
- Inherits:
-
Object
- Object
- Google::Apis::ToolresultsV1beta3::CpuInfo
- 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
-
#cpu_processor ⇒ String
description of the device processor ie '1.8 GHz hexa core 64-bit ARMv8-A' Corresponds to the JSON property
cpuProcessor
. -
#cpu_speed_in_ghz ⇒ Float
the CPU clock speed in GHz Corresponds to the JSON property
cpuSpeedInGhz
. -
#number_of_cores ⇒ Fixnum
the number of CPU cores Corresponds to the JSON property
numberOfCores
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CpuInfo
constructor
A new instance of CpuInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CpuInfo
Returns a new instance of CpuInfo
183 184 185 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 183 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_processor ⇒ String
description of the device processor ie '1.8 GHz hexa core 64-bit ARMv8-A'
Corresponds to the JSON property cpuProcessor
171 172 173 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 171 def cpu_processor @cpu_processor end |
#cpu_speed_in_ghz ⇒ Float
the CPU clock speed in GHz
Corresponds to the JSON property cpuSpeedInGhz
176 177 178 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 176 def cpu_speed_in_ghz @cpu_speed_in_ghz end |
#number_of_cores ⇒ Fixnum
the number of CPU cores
Corresponds to the JSON property numberOfCores
181 182 183 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 181 def number_of_cores @number_of_cores end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
188 189 190 191 192 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 188 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 |