Class: Google::Apis::JobsV4::JobEvent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/jobs_v4/classes.rb,
lib/google/apis/jobs_v4/representations.rb,
lib/google/apis/jobs_v4/representations.rb

Overview

An event issued when a job seeker interacts with the application that implements Cloud Talent Solution.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobEvent

Returns a new instance of JobEvent.



1266
1267
1268
# File 'lib/google/apis/jobs_v4/classes.rb', line 1266

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

Instance Attribute Details

#jobsArray<String>

Required. The job name(s) associated with this event. For example, if this is an impression event, this field contains the identifiers of all jobs shown to the job seeker. If this was a view event, this field contains the identifier of the viewed job. The format is "projects/project_id/tenants/tenant_id/ jobs/job_id", for example, "projects/foo/tenants/bar/jobs/baz". Corresponds to the JSON property jobs

Returns:

  • (Array<String>)


1259
1260
1261
# File 'lib/google/apis/jobs_v4/classes.rb', line 1259

def jobs
  @jobs
end

#typeString

Required. The type of the event (see JobEventType). Corresponds to the JSON property type

Returns:

  • (String)


1264
1265
1266
# File 'lib/google/apis/jobs_v4/classes.rb', line 1264

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1271
1272
1273
1274
# File 'lib/google/apis/jobs_v4/classes.rb', line 1271

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