Class: Google::Apis::JobsV3::CommuteInfo

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

Overview

Output only. Commute details related to this job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CommuteInfo

Returns a new instance of CommuteInfo.



281
282
283
# File 'lib/google/apis/jobs_v3/classes.rb', line 281

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

Instance Attribute Details

#job_locationGoogle::Apis::JobsV3::Location

Output only. A resource that represents a location with full geographic information. Corresponds to the JSON property jobLocation



272
273
274
# File 'lib/google/apis/jobs_v3/classes.rb', line 272

def job_location
  @job_location
end

#travel_durationString

The number of seconds required to travel to the job location from the query location. A duration of 0 seconds indicates that the job is not reachable within the requested duration, but was returned as part of an expanded query. Corresponds to the JSON property travelDuration

Returns:

  • (String)


279
280
281
# File 'lib/google/apis/jobs_v3/classes.rb', line 279

def travel_duration
  @travel_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



286
287
288
289
# File 'lib/google/apis/jobs_v3/classes.rb', line 286

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