Class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::ActiveTimeRange
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::ChromeOsDevice::ActiveTimeRange
- 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
-
#active_time ⇒ Fixnum
Duration of usage in milliseconds.
-
#date ⇒ Date
Date of usage Corresponds to the JSON property
date.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActiveTimeRange
constructor
A new instance of ActiveTimeRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ActiveTimeRange
Returns a new instance of ActiveTimeRange.
1142 1143 1144 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1142 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active_time ⇒ Fixnum
Duration of usage in milliseconds.
Corresponds to the JSON property activeTime
1135 1136 1137 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1135 def active_time @active_time end |
#date ⇒ Date
Date of usage
Corresponds to the JSON property date
1140 1141 1142 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1140 def date @date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1147 1148 1149 1150 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1147 def update!(**args) @active_time = args[:active_time] if args.key?(:active_time) @date = args[:date] if args.key?(:date) end |