Class: Google::Apis::JobsV2::CompanyInfoSource

Inherits:
Object
  • Object
show all
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

A resource that represents an external Google identifier for a company, for example, a Google+ business page or a Google Maps business page. For unsupported types, use unknown_type_id.

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) ⇒ CompanyInfoSource

Returns a new instance of CompanyInfoSource



417
418
419
# File 'generated/google/apis/jobs_v2/classes.rb', line 417

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

Instance Attribute Details

#freebase_midString

Optional. The Google's Knowledge Graph value for the employer's company. Corresponds to the JSON property freebaseMid

Returns:

  • (String)


396
397
398
# File 'generated/google/apis/jobs_v2/classes.rb', line 396

def freebase_mid
  @freebase_mid
end

#gplus_idString

Optional. The numeric identifier for the employer's Google+ business page. Corresponds to the JSON property gplusId

Returns:

  • (String)


402
403
404
# File 'generated/google/apis/jobs_v2/classes.rb', line 402

def gplus_id
  @gplus_id
end

#maps_cidString

Optional. The numeric identifier for the employer's headquarters on Google Maps, namely, the Google Maps CID (cell id). Corresponds to the JSON property mapsCid

Returns:

  • (String)


409
410
411
# File 'generated/google/apis/jobs_v2/classes.rb', line 409

def maps_cid
  @maps_cid
end

#unknown_type_idString

Optional. A Google identifier that does not match any of the other types. Corresponds to the JSON property unknownTypeId

Returns:

  • (String)


415
416
417
# File 'generated/google/apis/jobs_v2/classes.rb', line 415

def unknown_type_id
  @unknown_type_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



422
423
424
425
426
427
# File 'generated/google/apis/jobs_v2/classes.rb', line 422

def update!(**args)
  @freebase_mid = args[:freebase_mid] if args.key?(:freebase_mid)
  @gplus_id = args[:gplus_id] if args.key?(:gplus_id)
  @maps_cid = args[:maps_cid] if args.key?(:maps_cid)
  @unknown_type_id = args[:unknown_type_id] if args.key?(:unknown_type_id)
end