Class: Google::Apis::JobsV3p1beta1::JobEvent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/jobs_v3p1beta1/classes.rb,
generated/google/apis/jobs_v3p1beta1/representations.rb,
generated/google/apis/jobs_v3p1beta1/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ JobEvent

Returns a new instance of JobEvent.



1612
1613
1614
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1612

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. Corresponds to the JSON property jobs

Returns:

  • (Array<String>)


1605
1606
1607
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1605

def jobs
  @jobs
end

#typeString

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

Returns:

  • (String)


1610
1611
1612
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1610

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1617
1618
1619
1620
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1617

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