Class: Google::Apis::JobsV2::CommuteInfo
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::JobsV2::CommuteInfo
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/jobs_v2/classes.rb,
 generated/google/apis/jobs_v2/representations.rb,
 generated/google/apis/jobs_v2/representations.rb
Overview
Output only. Commute details related to this job.
Instance Attribute Summary collapse
- 
  
    
      #job_location  ⇒ Google::Apis::JobsV2::JobLocation 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
- 
  
    
      #travel_duration  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Travel time to reach the job. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CommuteInfo 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CommuteInfo. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CommuteInfo
Returns a new instance of CommuteInfo
| 118 119 120 | # File 'generated/google/apis/jobs_v2/classes.rb', line 118 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#job_location ⇒ Google::Apis::JobsV2::JobLocation
Output only.
A resource that represents a location with full geographic
information.
Corresponds to the JSON property jobLocation
| 111 112 113 | # File 'generated/google/apis/jobs_v2/classes.rb', line 111 def job_location @job_location end | 
#travel_duration ⇒ String
Travel time to reach the job.
Corresponds to the JSON property travelDuration
| 116 117 118 | # File 'generated/google/apis/jobs_v2/classes.rb', line 116 def travel_duration @travel_duration end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 123 124 125 126 | # File 'generated/google/apis/jobs_v2/classes.rb', line 123 def update!(**args) @job_location = args[:job_location] if args.key?(:job_location) @travel_duration = args[:travel_duration] if args.key?(:travel_duration) end |