Class: Google::Apis::JobsV2::LocationFilter
- Inherits:
-
Object
- Object
- Google::Apis::JobsV2::LocationFilter
- 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
Input only. Geographic region of the search.
Instance Attribute Summary collapse
-
#distance_in_miles ⇒ Float
Optional.
-
#is_telecommute ⇒ Boolean
(also: #is_telecommute?)
Optional.
-
#lat_lng ⇒ Google::Apis::JobsV2::LatLng
An object representing a latitude/longitude pair.
-
#name ⇒ String
Optional.
-
#region_code ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LocationFilter
constructor
A new instance of LocationFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LocationFilter
Returns a new instance of LocationFilter
2600 2601 2602 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 2600 def initialize(**args) update!(**args) end |
Instance Attribute Details
#distance_in_miles ⇒ Float
Optional.
The distance from the address in miles to search.
The default distance is 20 miles and maximum distance is 5,000 miles.
Corresponds to the JSON property distanceInMiles
2551 2552 2553 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 2551 def distance_in_miles @distance_in_miles end |
#is_telecommute ⇒ Boolean Also known as: is_telecommute?
Optional.
Allows the client to return jobs without a
set location, specifically, telecommuting jobs (telecomuting is considered
by the service as a special location.
Job.allow_telecommute indicates if a job permits telecommuting.
If this field is true, telecommuting jobs are searched, and
name and lat_lng are
ignored.
This filter can be used by itself to search exclusively for telecommuting
jobs, or it can be combined with another location
filter to search for a combination of job locations,
such as "Mountain View" or "telecommuting" jobs. However, when used in
combination with other location filters, telecommuting jobs can be
treated as less relevant than other jobs in the search response.
Corresponds to the JSON property isTelecommute
2569 2570 2571 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 2569 def is_telecommute @is_telecommute end |
#lat_lng ⇒ Google::Apis::JobsV2::LatLng
An object representing a latitude/longitude pair. This is expressed as a pair
of doubles representing degrees latitude and degrees longitude. Unless
specified otherwise, this must conform to the
WGS84
standard. Values must be within normalized ranges.
Corresponds to the JSON property latLng
2579 2580 2581 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 2579 def lat_lng @lat_lng end |
#name ⇒ String
Optional.
The address name, such as "Mountain View" or "Bay Area".
Corresponds to the JSON property name
2585 2586 2587 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 2585 def name @name end |
#region_code ⇒ String
Optional.
CLDR region code of the country/region of the address. This will be used
to address ambiguity of the user-input location, e.g. "Liverpool"
against "Liverpool, NY, US" or "Liverpool, UK".
Set this field if all the jobs to search against are from a same region,
or jobs are world-wide but the job seeker is from a specific region.
See http://cldr.unicode.org/ and
http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
for details. Example: "CH" for Switzerland.
Corresponds to the JSON property regionCode
2598 2599 2600 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 2598 def region_code @region_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2605 2606 2607 2608 2609 2610 2611 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 2605 def update!(**args) @distance_in_miles = args[:distance_in_miles] if args.key?(:distance_in_miles) @is_telecommute = args[:is_telecommute] if args.key?(:is_telecommute) @lat_lng = args[:lat_lng] if args.key?(:lat_lng) @name = args[:name] if args.key?(:name) @region_code = args[:region_code] if args.key?(:region_code) end |