Class: Google::Apis::PeopleV1::Organization
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::Organization
- 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
-
#cost_center ⇒ String
The person's cost center at the organization.
-
#current ⇒ Boolean
(also: #current?)
True if the organization is the person's current organization; false if the organization is a past organization.
-
#department ⇒ String
The person's department at the organization.
-
#domain ⇒ String
The domain name associated with the organization; for example,
google.com
. -
#end_date ⇒ Google::Apis::PeopleV1::Date
Represents a whole or partial calendar date, such as a birthday.
-
#formatted_type ⇒ String
Output only.
-
#full_time_equivalent_millipercent ⇒ Fixnum
The person's full-time equivalent millipercent within the organization (100000 = 100%).
-
#job_description ⇒ String
The person's job description at the organization.
-
#location ⇒ String
The location of the organization office the person works at.
-
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
-
#name ⇒ String
The name of the organization.
-
#phonetic_name ⇒ String
The phonetic name of the organization.
-
#start_date ⇒ Google::Apis::PeopleV1::Date
Represents a whole or partial calendar date, such as a birthday.
-
#symbol ⇒ String
The symbol associated with the organization; for example, a stock ticker symbol, abbreviation, or acronym.
-
#title ⇒ String
The person's job title at the organization.
-
#type ⇒ String
The type of the organization.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Organization
constructor
A new instance of Organization.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Organization
Returns a new instance of Organization.
1885 1886 1887 |
# File 'lib/google/apis/people_v1/classes.rb', line 1885 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cost_center ⇒ String
The person's cost center at the organization.
Corresponds to the JSON property costCenter
1788 1789 1790 |
# File 'lib/google/apis/people_v1/classes.rb', line 1788 def cost_center @cost_center end |
#current ⇒ Boolean 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
1794 1795 1796 |
# File 'lib/google/apis/people_v1/classes.rb', line 1794 def current @current end |
#department ⇒ String
The person's department at the organization.
Corresponds to the JSON property department
1800 1801 1802 |
# File 'lib/google/apis/people_v1/classes.rb', line 1800 def department @department end |
#domain ⇒ String
The domain name associated with the organization; for example, google.com
.
Corresponds to the JSON property domain
1805 1806 1807 |
# File 'lib/google/apis/people_v1/classes.rb', line 1805 def domain @domain end |
#end_date ⇒ Google::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, with a zero year (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property endDate
1817 1818 1819 |
# File 'lib/google/apis/people_v1/classes.rb', line 1817 def end_date @end_date end |
#formatted_type ⇒ String
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
1823 1824 1825 |
# File 'lib/google/apis/people_v1/classes.rb', line 1823 def formatted_type @formatted_type end |
#full_time_equivalent_millipercent ⇒ Fixnum
The person's full-time equivalent millipercent within the organization (100000
= 100%).
Corresponds to the JSON property fullTimeEquivalentMillipercent
1829 1830 1831 |
# File 'lib/google/apis/people_v1/classes.rb', line 1829 def full_time_equivalent_millipercent @full_time_equivalent_millipercent end |
#job_description ⇒ String
The person's job description at the organization.
Corresponds to the JSON property jobDescription
1834 1835 1836 |
# File 'lib/google/apis/people_v1/classes.rb', line 1834 def job_description @job_description end |
#location ⇒ String
The location of the organization office the person works at.
Corresponds to the JSON property location
1839 1840 1841 |
# File 'lib/google/apis/people_v1/classes.rb', line 1839 def location @location end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
1844 1845 1846 |
# File 'lib/google/apis/people_v1/classes.rb', line 1844 def @metadata end |
#name ⇒ String
The name of the organization.
Corresponds to the JSON property name
1849 1850 1851 |
# File 'lib/google/apis/people_v1/classes.rb', line 1849 def name @name end |
#phonetic_name ⇒ String
The phonetic name of the organization.
Corresponds to the JSON property phoneticName
1854 1855 1856 |
# File 'lib/google/apis/people_v1/classes.rb', line 1854 def phonetic_name @phonetic_name end |
#start_date ⇒ Google::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, with a zero year (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property startDate
1866 1867 1868 |
# File 'lib/google/apis/people_v1/classes.rb', line 1866 def start_date @start_date end |
#symbol ⇒ String
The symbol associated with the organization; for example, a stock ticker
symbol, abbreviation, or acronym.
Corresponds to the JSON property symbol
1872 1873 1874 |
# File 'lib/google/apis/people_v1/classes.rb', line 1872 def symbol @symbol end |
#title ⇒ String
The person's job title at the organization.
Corresponds to the JSON property title
1877 1878 1879 |
# File 'lib/google/apis/people_v1/classes.rb', line 1877 def title @title end |
#type ⇒ String
The type of the organization. The type can be custom or one of these
predefined values: * work
* school
Corresponds to the JSON property type
1883 1884 1885 |
# File 'lib/google/apis/people_v1/classes.rb', line 1883 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 |
# File 'lib/google/apis/people_v1/classes.rb', line 1890 def update!(**args) @cost_center = args[:cost_center] if args.key?(:cost_center) @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) @full_time_equivalent_millipercent = args[:full_time_equivalent_millipercent] if args.key?(:full_time_equivalent_millipercent) @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 |