Class: Google::Apis::PartnersV2::Company

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

Overview

A company resource in the Google Partners API. Once certified, it qualifies for being searched by advertisers.

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

Returns a new instance of Company.



555
556
557
# File 'generated/google/apis/partners_v2/classes.rb', line 555

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

Instance Attribute Details

#certification_statusesArray<Google::Apis::PartnersV2::CertificationStatus>

The list of Google Partners certification statuses for the company. Corresponds to the JSON property certificationStatuses



533
534
535
# File 'generated/google/apis/partners_v2/classes.rb', line 533

def certification_statuses
  @certification_statuses
end

#converted_min_monthly_budgetGoogle::Apis::PartnersV2::Money

Represents an amount of money with its currency type. Corresponds to the JSON property convertedMinMonthlyBudget



518
519
520
# File 'generated/google/apis/partners_v2/classes.rb', line 518

def converted_min_monthly_budget
  @converted_min_monthly_budget
end

#idString

The ID of the company. Corresponds to the JSON property id

Returns:

  • (String)


498
499
500
# File 'generated/google/apis/partners_v2/classes.rb', line 498

def id
  @id
end

#industriesArray<String>

Industries the company can help with. Corresponds to the JSON property industries

Returns:

  • (Array<String>)


548
549
550
# File 'generated/google/apis/partners_v2/classes.rb', line 548

def industries
  @industries
end

#localized_infosArray<Google::Apis::PartnersV2::LocalizedCompanyInfo>

The list of localized info for the company. Corresponds to the JSON property localizedInfos



508
509
510
# File 'generated/google/apis/partners_v2/classes.rb', line 508

def localized_infos
  @localized_infos
end

#locationsArray<Google::Apis::PartnersV2::Location>

The list of company locations. Corresponds to the JSON property locations



513
514
515
# File 'generated/google/apis/partners_v2/classes.rb', line 513

def locations
  @locations
end

#nameString

The name of the company. Corresponds to the JSON property name

Returns:

  • (String)


503
504
505
# File 'generated/google/apis/partners_v2/classes.rb', line 503

def name
  @name
end

#original_min_monthly_budgetGoogle::Apis::PartnersV2::Money

Represents an amount of money with its currency type. Corresponds to the JSON property originalMinMonthlyBudget



523
524
525
# File 'generated/google/apis/partners_v2/classes.rb', line 523

def original_min_monthly_budget
  @original_min_monthly_budget
end

#public_profileGoogle::Apis::PartnersV2::PublicProfile

Basic information from a public profile. Corresponds to the JSON property publicProfile



528
529
530
# File 'generated/google/apis/partners_v2/classes.rb', line 528

def public_profile
  @public_profile
end

#ranksArray<Google::Apis::PartnersV2::Rank>

Information related to the ranking of the company within the list of companies. Corresponds to the JSON property ranks

Returns:



538
539
540
# File 'generated/google/apis/partners_v2/classes.rb', line 538

def ranks
  @ranks
end

#servicesArray<String>

Services the company can help with. Corresponds to the JSON property services

Returns:

  • (Array<String>)


553
554
555
# File 'generated/google/apis/partners_v2/classes.rb', line 553

def services
  @services
end

#website_urlString

URL of the company's website. Corresponds to the JSON property websiteUrl

Returns:

  • (String)


543
544
545
# File 'generated/google/apis/partners_v2/classes.rb', line 543

def website_url
  @website_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



560
561
562
563
564
565
566
567
568
569
570
571
572
573
# File 'generated/google/apis/partners_v2/classes.rb', line 560

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @localized_infos = args[:localized_infos] if args.key?(:localized_infos)
  @locations = args[:locations] if args.key?(:locations)
  @converted_min_monthly_budget = args[:converted_min_monthly_budget] if args.key?(:converted_min_monthly_budget)
  @original_min_monthly_budget = args[:original_min_monthly_budget] if args.key?(:original_min_monthly_budget)
  @public_profile = args[:public_profile] if args.key?(:public_profile)
  @certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses)
  @ranks = args[:ranks] if args.key?(:ranks)
  @website_url = args[:website_url] if args.key?(:website_url)
  @industries = args[:industries] if args.key?(:industries)
  @services = args[:services] if args.key?(:services)
end