Class: Google::Apis::DriveactivityV2::Action
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::Action
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/driveactivity_v2/classes.rb,
generated/google/apis/driveactivity_v2/representations.rb,
generated/google/apis/driveactivity_v2/representations.rb
Overview
Information about the action.
Instance Attribute Summary collapse
-
#actor ⇒ Google::Apis::DriveactivityV2::Actor
The actor of a Drive activity.
-
#detail ⇒ Google::Apis::DriveactivityV2::ActionDetail
Data describing the type and additional information of an action.
-
#target ⇒ Google::Apis::DriveactivityV2::Target
Information about the target of activity.
-
#time_range ⇒ Google::Apis::DriveactivityV2::TimeRange
Information about time ranges.
-
#timestamp ⇒ String
The action occurred at this specific time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Action
constructor
A new instance of Action.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Action
Returns a new instance of Action.
54 55 56 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 54 def initialize(**args) update!(**args) end |
Instance Attribute Details
#actor ⇒ Google::Apis::DriveactivityV2::Actor
The actor of a Drive activity.
Corresponds to the JSON property actor
32 33 34 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 32 def actor @actor end |
#detail ⇒ Google::Apis::DriveactivityV2::ActionDetail
Data describing the type and additional information of an action.
Corresponds to the JSON property detail
37 38 39 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 37 def detail @detail end |
#target ⇒ Google::Apis::DriveactivityV2::Target
Information about the target of activity.
Corresponds to the JSON property target
42 43 44 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 42 def target @target end |
#time_range ⇒ Google::Apis::DriveactivityV2::TimeRange
Information about time ranges.
Corresponds to the JSON property timeRange
47 48 49 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 47 def time_range @time_range end |
#timestamp ⇒ String
The action occurred at this specific time.
Corresponds to the JSON property timestamp
52 53 54 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 52 def @timestamp end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
59 60 61 62 63 64 65 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 59 def update!(**args) @actor = args[:actor] if args.key?(:actor) @detail = args[:detail] if args.key?(:detail) @target = args[:target] if args.key?(:target) @time_range = args[:time_range] if args.key?(:time_range) @timestamp = args[:timestamp] if args.key?(:timestamp) end |