Class: Google::Apis::JobsV4::CommuteInfo
- Inherits:
-
Object
- Object
- Google::Apis::JobsV4::CommuteInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/jobs_v4/classes.rb,
generated/google/apis/jobs_v4/representations.rb,
generated/google/apis/jobs_v4/representations.rb
Overview
Commute details related to this job.
Instance Attribute Summary collapse
-
#job_location ⇒ Google::Apis::JobsV4::Location
A resource that represents a location with full geographic information.
-
#travel_duration ⇒ String
The number of seconds required to travel to the job location from the query location.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CommuteInfo
constructor
A new instance of CommuteInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CommuteInfo
Returns a new instance of CommuteInfo.
389 390 391 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 389 def initialize(**args) update!(**args) end |
Instance Attribute Details
#job_location ⇒ Google::Apis::JobsV4::Location
A resource that represents a location with full geographic information.
Corresponds to the JSON property jobLocation
380 381 382 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 380 def job_location @job_location end |
#travel_duration ⇒ String
The number of seconds required to travel to the job location from the query
location. A duration of 0 seconds indicates that the job isn't reachable
within the requested duration, but was returned as part of an expanded query.
Corresponds to the JSON property travelDuration
387 388 389 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 387 def travel_duration @travel_duration end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
394 395 396 397 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 394 def update!(**args) @job_location = args[:job_location] if args.key?(:job_location) @travel_duration = args[:travel_duration] if args.key?(:travel_duration) end |