Class: Google::Apis::ToolresultsV1beta3::MemoryInfo

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

Returns a new instance of MemoryInfo



1243
1244
1245
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1243

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

Instance Attribute Details

#memory_cap_in_kibibyteFixnum

Maximum memory that can be allocated to the process in KiB Corresponds to the JSON property memoryCapInKibibyte

Returns:

  • (Fixnum)


1236
1237
1238
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1236

def memory_cap_in_kibibyte
  @memory_cap_in_kibibyte
end

#memory_total_in_kibibyteFixnum

Total memory available on the device in KiB Corresponds to the JSON property memoryTotalInKibibyte

Returns:

  • (Fixnum)


1241
1242
1243
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1241

def memory_total_in_kibibyte
  @memory_total_in_kibibyte
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1248
1249
1250
1251
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1248

def update!(**args)
  @memory_cap_in_kibibyte = args[:memory_cap_in_kibibyte] if args.key?(:memory_cap_in_kibibyte)
  @memory_total_in_kibibyte = args[:memory_total_in_kibibyte] if args.key?(:memory_total_in_kibibyte)
end