Class: Google::Apis::DriveactivityV2::Action

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#actorGoogle::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

#detailGoogle::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

#targetGoogle::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_rangeGoogle::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

#timestampString

The action occurred at this specific time. Corresponds to the JSON property timestamp

Returns:

  • (String)


54
55
56
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 54

def timestamp
  @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