Class: Google::Apis::PeopleV1::Organization

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

Overview

A person's past or current organization. Overlapping date ranges are permitted.

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

Returns a new instance of Organization



1033
1034
1035
# File 'generated/google/apis/people_v1/classes.rb', line 1033

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

Instance Attribute Details

#currentBoolean Also known as: current?

True if the organization is the person's current organization; false if the organization is a past organization. Corresponds to the JSON property current

Returns:

  • (Boolean)


1007
1008
1009
# File 'generated/google/apis/people_v1/classes.rb', line 1007

def current
  @current
end

#departmentString

The person's department at the organization. Corresponds to the JSON property department

Returns:

  • (String)


945
946
947
# File 'generated/google/apis/people_v1/classes.rb', line 945

def department
  @department
end

#domainString

The domain name associated with the organization; for example, google.com. Corresponds to the JSON property domain

Returns:

  • (String)


1031
1032
1033
# File 'generated/google/apis/people_v1/classes.rb', line 1031

def domain
  @domain
end

#end_dateGoogle::Apis::PeopleV1::Date

Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a year and month where the day is not significant. The year may be 0 to represent a month and day independent of year; for example, anniversary date. Corresponds to the JSON property endDate



975
976
977
# File 'generated/google/apis/people_v1/classes.rb', line 975

def end_date
  @end_date
end

#formatted_typeString

The read-only type of the organization translated and formatted in the viewer's account locale or the Accept-Language HTTP header locale. Corresponds to the JSON property formattedType

Returns:

  • (String)


1026
1027
1028
# File 'generated/google/apis/people_v1/classes.rb', line 1026

def formatted_type
  @formatted_type
end

#job_descriptionString

The person's job description at the organization. Corresponds to the JSON property jobDescription

Returns:

  • (String)


963
964
965
# File 'generated/google/apis/people_v1/classes.rb', line 963

def job_description
  @job_description
end

#locationString

The location of the organization office the person works at. Corresponds to the JSON property location

Returns:

  • (String)


1001
1002
1003
# File 'generated/google/apis/people_v1/classes.rb', line 1001

def location
  @location
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



991
992
993
# File 'generated/google/apis/people_v1/classes.rb', line 991

def 
  @metadata
end

#nameString

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

Returns:

  • (String)


986
987
988
# File 'generated/google/apis/people_v1/classes.rb', line 986

def name
  @name
end

#phonetic_nameString

The phonetic name of the organization. Corresponds to the JSON property phoneticName

Returns:

  • (String)


958
959
960
# File 'generated/google/apis/people_v1/classes.rb', line 958

def phonetic_name
  @phonetic_name
end

#start_dateGoogle::Apis::PeopleV1::Date

Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a year and month where the day is not significant. The year may be 0 to represent a month and day independent of year; for example, anniversary date. Corresponds to the JSON property startDate



1020
1021
1022
# File 'generated/google/apis/people_v1/classes.rb', line 1020

def start_date
  @start_date
end

#symbolString

The symbol associated with the organization; for example, a stock ticker symbol, abbreviation, or acronym. Corresponds to the JSON property symbol

Returns:

  • (String)


981
982
983
# File 'generated/google/apis/people_v1/classes.rb', line 981

def symbol
  @symbol
end

#titleString

The person's job title at the organization. Corresponds to the JSON property title

Returns:

  • (String)


996
997
998
# File 'generated/google/apis/people_v1/classes.rb', line 996

def title
  @title
end

#typeString

The type of the organization. The type can be custom or predefined. Possible values include, but are not limited to, the following:

  • work
  • school Corresponds to the JSON property type

Returns:

  • (String)


953
954
955
# File 'generated/google/apis/people_v1/classes.rb', line 953

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
# File 'generated/google/apis/people_v1/classes.rb', line 1038

def update!(**args)
  @department = args[:department] if args.key?(:department)
  @type = args[:type] if args.key?(:type)
  @phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name)
  @job_description = args[:job_description] if args.key?(:job_description)
  @end_date = args[:end_date] if args.key?(:end_date)
  @symbol = args[:symbol] if args.key?(:symbol)
  @name = args[:name] if args.key?(:name)
  @metadata = args[:metadata] if args.key?(:metadata)
  @title = args[:title] if args.key?(:title)
  @location = args[:location] if args.key?(:location)
  @current = args[:current] if args.key?(:current)
  @start_date = args[:start_date] if args.key?(:start_date)
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
  @domain = args[:domain] if args.key?(:domain)
end