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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/google/apis/admin_directory_v1/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) ⇒ ActiveTimeRange

Returns a new instance of ActiveTimeRange.


858
859
860
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 858

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

Instance Attribute Details

#active_timeFixnum

Duration in milliseconds Corresponds to the JSON property activeTime

Returns:

  • (Fixnum)

851
852
853
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 851

def active_time
  @active_time
end

#dateDate

Date of usage Corresponds to the JSON property date

Returns:

  • (Date)

856
857
858
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 856

def date
  @date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


863
864
865
866
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 863

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