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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/people_v1/classes.rb,
lib/google/apis/people_v1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ Organization

Returns a new instance of Organization.



1861
1862
1863
# File 'lib/google/apis/people_v1/classes.rb', line 1861

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)


1776
1777
1778
# File 'lib/google/apis/people_v1/classes.rb', line 1776

def current
  @current
end

#departmentString

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

Returns:

  • (String)


1782
1783
1784
# File 'lib/google/apis/people_v1/classes.rb', line 1782

def department
  @department
end

#domainString

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

Returns:

  • (String)


1787
1788
1789
# File 'lib/google/apis/people_v1/classes.rb', line 1787

def domain
  @domain
end

#end_dateGoogle::Apis::PeopleV1::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and google.protobuf.Timestamp. Corresponds to the JSON property endDate



1799
1800
1801
# File 'lib/google/apis/people_v1/classes.rb', line 1799

def end_date
  @end_date
end

#formatted_typeString

Output only. The 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)


1805
1806
1807
# File 'lib/google/apis/people_v1/classes.rb', line 1805

def formatted_type
  @formatted_type
end

#job_descriptionString

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

Returns:

  • (String)


1810
1811
1812
# File 'lib/google/apis/people_v1/classes.rb', line 1810

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)


1815
1816
1817
# File 'lib/google/apis/people_v1/classes.rb', line 1815

def location
  @location
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



1820
1821
1822
# File 'lib/google/apis/people_v1/classes.rb', line 1820

def 
  @metadata
end

#nameString

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

Returns:

  • (String)


1825
1826
1827
# File 'lib/google/apis/people_v1/classes.rb', line 1825

def name
  @name
end

#phonetic_nameString

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

Returns:

  • (String)


1830
1831
1832
# File 'lib/google/apis/people_v1/classes.rb', line 1830

def phonetic_name
  @phonetic_name
end

#start_dateGoogle::Apis::PeopleV1::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and google.protobuf.Timestamp. Corresponds to the JSON property startDate



1842
1843
1844
# File 'lib/google/apis/people_v1/classes.rb', line 1842

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)


1848
1849
1850
# File 'lib/google/apis/people_v1/classes.rb', line 1848

def symbol
  @symbol
end

#titleString

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

Returns:

  • (String)


1853
1854
1855
# File 'lib/google/apis/people_v1/classes.rb', line 1853

def title
  @title
end

#typeString

The type of the organization. The type can be custom or one of these predefined values: * work * school Corresponds to the JSON property type

Returns:

  • (String)


1859
1860
1861
# File 'lib/google/apis/people_v1/classes.rb', line 1859

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
# File 'lib/google/apis/people_v1/classes.rb', line 1866

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