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 calendar date, for example a date of birth. 
- 
  
    
      #formatted_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The read-only type of the organization translated and formatted in the viewer's account locale or the Accept-LanguageHTTP header locale.
- 
  
    
      #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 calendar date, for example a date of birth. 
- 
  
    
      #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
| 1300 1301 1302 | # File 'generated/google/apis/people_v1/classes.rb', line 1300 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
| 1213 1214 1215 | # File 'generated/google/apis/people_v1/classes.rb', line 1213 def current @current end | 
#department ⇒ String
The person's department at the organization.
Corresponds to the JSON property department
| 1219 1220 1221 | # File 'generated/google/apis/people_v1/classes.rb', line 1219 def department @department end | 
#domain ⇒ String
The domain name associated with the organization; for example, google.com.
Corresponds to the JSON property domain
| 1224 1225 1226 | # File 'generated/google/apis/people_v1/classes.rb', line 1224 def domain @domain end | 
#end_date ⇒ Google::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
| 1236 1237 1238 | # File 'generated/google/apis/people_v1/classes.rb', line 1236 def end_date @end_date end | 
#formatted_type ⇒ String
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
| 1242 1243 1244 | # File 'generated/google/apis/people_v1/classes.rb', line 1242 def formatted_type @formatted_type end | 
#job_description ⇒ String
The person's job description at the organization.
Corresponds to the JSON property jobDescription
| 1247 1248 1249 | # File 'generated/google/apis/people_v1/classes.rb', line 1247 def job_description @job_description end | 
#location ⇒ String
The location of the organization office the person works at.
Corresponds to the JSON property location
| 1252 1253 1254 | # File 'generated/google/apis/people_v1/classes.rb', line 1252 def location @location end | 
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
| 1257 1258 1259 | # File 'generated/google/apis/people_v1/classes.rb', line 1257 def @metadata end | 
#name ⇒ String
The name of the organization.
Corresponds to the JSON property name
| 1262 1263 1264 | # File 'generated/google/apis/people_v1/classes.rb', line 1262 def name @name end | 
#phonetic_name ⇒ String
The phonetic name of the organization.
Corresponds to the JSON property phoneticName
| 1267 1268 1269 | # File 'generated/google/apis/people_v1/classes.rb', line 1267 def phonetic_name @phonetic_name end | 
#start_date ⇒ Google::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
| 1279 1280 1281 | # File 'generated/google/apis/people_v1/classes.rb', line 1279 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
| 1285 1286 1287 | # File 'generated/google/apis/people_v1/classes.rb', line 1285 def symbol @symbol end | 
#title ⇒ String
The person's job title at the organization.
Corresponds to the JSON property title
| 1290 1291 1292 | # File 'generated/google/apis/people_v1/classes.rb', line 1290 def title @title end | 
#type ⇒ String
The type of the organization. The type can be custom or predefined. Possible values include, but are not limited to, the following:
- work
- schoolCorresponds to the JSON property- type
| 1298 1299 1300 | # File 'generated/google/apis/people_v1/classes.rb', line 1298 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 | # File 'generated/google/apis/people_v1/classes.rb', line 1305 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 |