Class: Google::Apis::PlusDomainsV1::Person::Organization

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

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



2363
2364
2365
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2363

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

Instance Attribute Details

#departmentString

The department within the organization. Deprecated. Corresponds to the JSON property department

Returns:

  • (String)


2316
2317
2318
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2316

def department
  @department
end

#descriptionString

A short description of the person's role in this organization. Deprecated. Corresponds to the JSON property description

Returns:

  • (String)


2321
2322
2323
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2321

def description
  @description
end

#end_dateString

The date that the person left this organization. Corresponds to the JSON property endDate

Returns:

  • (String)


2326
2327
2328
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2326

def end_date
  @end_date
end

#locationString

The location of this organization. Deprecated. Corresponds to the JSON property location

Returns:

  • (String)


2331
2332
2333
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2331

def location
  @location
end

#nameString

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

Returns:

  • (String)


2336
2337
2338
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2336

def name
  @name
end

#primaryBoolean Also known as: primary?

If "true", indicates this organization is the person's primary one, which is typically interpreted as the current one. Corresponds to the JSON property primary

Returns:

  • (Boolean)


2342
2343
2344
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2342

def primary
  @primary
end

#start_dateString

The date that the person joined this organization. Corresponds to the JSON property startDate

Returns:

  • (String)


2348
2349
2350
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2348

def start_date
  @start_date
end

#titleString

The person's job title or role within the organization. Corresponds to the JSON property title

Returns:

  • (String)


2353
2354
2355
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2353

def title
  @title
end

#typeString

The type of organization. Possible values include, but are not limited to, the following values:

  • "work" - Work.
  • "school" - School. Corresponds to the JSON property type

Returns:

  • (String)


2361
2362
2363
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2361

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2368

def update!(**args)
  @department = args[:department] if args.key?(:department)
  @description = args[:description] if args.key?(:description)
  @end_date = args[:end_date] if args.key?(:end_date)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @primary = args[:primary] if args.key?(:primary)
  @start_date = args[:start_date] if args.key?(:start_date)
  @title = args[:title] if args.key?(:title)
  @type = args[:type] if args.key?(:type)
end