Class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::ActiveTimeRange

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActiveTimeRange

Returns a new instance of ActiveTimeRange.



1340
1341
1342
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1340

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

Instance Attribute Details

#active_timeFixnum

Duration of usage in milliseconds. Corresponds to the JSON property activeTime

Returns:

  • (Fixnum)


1333
1334
1335
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1333

def active_time
  @active_time
end

#dateDate

Date of usage Corresponds to the JSON property date

Returns:

  • (Date)


1338
1339
1340
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1338

def date
  @date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1345
1346
1347
1348
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1345

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