Class: Google::Apis::DriveactivityV2::Action
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::Action
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/driveactivity_v2/classes.rb,
lib/google/apis/driveactivity_v2/representations.rb,
lib/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.
56 57 58 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 56 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 'lib/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 'lib/google/apis/driveactivity_v2/classes.rb', line 37 def detail @detail end |
#target ⇒ Google::Apis::DriveactivityV2::Target
Information about the target of activity. For more information on how activity
history is shared with users, see Activity history visibility.
Corresponds to the JSON property target
44 45 46 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 44 def target @target end |
#time_range ⇒ Google::Apis::DriveactivityV2::TimeRange
Information about time ranges.
Corresponds to the JSON property timeRange
49 50 51 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 49 def time_range @time_range end |
#timestamp ⇒ String
The action occurred at this specific time.
Corresponds to the JSON property timestamp
54 55 56 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 54 def @timestamp end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
61 62 63 64 65 66 67 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 61 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 |