Class: Google::Apis::AndroidmanagementV1::MemoryInfo

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

Overview

Information about device memory and storage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MemoryInfo

Returns a new instance of MemoryInfo.



4513
4514
4515
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4513

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

Instance Attribute Details

#total_internal_storageFixnum

Total internal storage on device in bytes. Corresponds to the JSON property totalInternalStorage

Returns:

  • (Fixnum)


4506
4507
4508
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4506

def total_internal_storage
  @total_internal_storage
end

#total_ramFixnum

Total RAM on device in bytes. Corresponds to the JSON property totalRam

Returns:

  • (Fixnum)


4511
4512
4513
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4511

def total_ram
  @total_ram
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4518
4519
4520
4521
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4518

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