Class: Google::Apis::PeopleV1::Organization
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::Organization
- 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
-
#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, e.g.
-
#formatted_type ⇒ String
Output only.
-
#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, e.g.
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Organization
Returns a new instance of Organization.
1309 1310 1311 |
# File 'generated/google/apis/people_v1/classes.rb', line 1309 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
1221 1222 1223 |
# File 'generated/google/apis/people_v1/classes.rb', line 1221 def current @current end |
#department ⇒ String
The person's department at the organization.
Corresponds to the JSON property department
1227 1228 1229 |
# File 'generated/google/apis/people_v1/classes.rb', line 1227 def department @department end |
#domain ⇒ String
The domain name associated with the organization; for example,
google.com
.
Corresponds to the JSON property domain
1233 1234 1235 |
# File 'generated/google/apis/people_v1/classes.rb', line 1233 def domain @domain end |
#end_date ⇒ Google::Apis::PeopleV1::Date
Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent:
- A full date, with non-zero year, month and day values
- A month and day value, with a zero year, e.g. an anniversary
- A year on its own, with zero month and day values
- A year and month value, with a zero day, e.g. a credit card expiration date
Related types are google.type.TimeOfDay and
google.protobuf.Timestamp
. Corresponds to the JSON propertyendDate
1245 1246 1247 |
# File 'generated/google/apis/people_v1/classes.rb', line 1245 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
1251 1252 1253 |
# File 'generated/google/apis/people_v1/classes.rb', line 1251 def formatted_type @formatted_type end |
#job_description ⇒ String
The person's job description at the organization.
Corresponds to the JSON property jobDescription
1256 1257 1258 |
# File 'generated/google/apis/people_v1/classes.rb', line 1256 def job_description @job_description end |
#location ⇒ String
The location of the organization office the person works at.
Corresponds to the JSON property location
1261 1262 1263 |
# File 'generated/google/apis/people_v1/classes.rb', line 1261 def location @location end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
1266 1267 1268 |
# File 'generated/google/apis/people_v1/classes.rb', line 1266 def @metadata end |
#name ⇒ String
The name of the organization.
Corresponds to the JSON property name
1271 1272 1273 |
# File 'generated/google/apis/people_v1/classes.rb', line 1271 def name @name end |
#phonetic_name ⇒ String
The phonetic name of the organization.
Corresponds to the JSON property phoneticName
1276 1277 1278 |
# File 'generated/google/apis/people_v1/classes.rb', line 1276 def phonetic_name @phonetic_name end |
#start_date ⇒ Google::Apis::PeopleV1::Date
Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent:
- A full date, with non-zero year, month and day values
- A month and day value, with a zero year, e.g. an anniversary
- A year on its own, with zero month and day values
- A year and month value, with a zero day, e.g. a credit card expiration date
Related types are google.type.TimeOfDay and
google.protobuf.Timestamp
. Corresponds to the JSON propertystartDate
1288 1289 1290 |
# File 'generated/google/apis/people_v1/classes.rb', line 1288 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
1294 1295 1296 |
# File 'generated/google/apis/people_v1/classes.rb', line 1294 def symbol @symbol end |
#title ⇒ String
The person's job title at the organization.
Corresponds to the JSON property title
1299 1300 1301 |
# File 'generated/google/apis/people_v1/classes.rb', line 1299 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 propertytype
1307 1308 1309 |
# File 'generated/google/apis/people_v1/classes.rb', line 1307 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 |
# File 'generated/google/apis/people_v1/classes.rb', line 1314 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 |