Class: Google::Apis::PlusV1::Person::Organization

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



1885
1886
1887
# File 'generated/google/apis/plus_v1/classes.rb', line 1885

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

Instance Attribute Details

#departmentString

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

Returns:

  • (String)


1838
1839
1840
# File 'generated/google/apis/plus_v1/classes.rb', line 1838

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)


1843
1844
1845
# File 'generated/google/apis/plus_v1/classes.rb', line 1843

def description
  @description
end

#end_dateString

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

Returns:

  • (String)


1848
1849
1850
# File 'generated/google/apis/plus_v1/classes.rb', line 1848

def end_date
  @end_date
end

#locationString

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

Returns:

  • (String)


1853
1854
1855
# File 'generated/google/apis/plus_v1/classes.rb', line 1853

def location
  @location
end

#nameString

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

Returns:

  • (String)


1858
1859
1860
# File 'generated/google/apis/plus_v1/classes.rb', line 1858

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)


1864
1865
1866
# File 'generated/google/apis/plus_v1/classes.rb', line 1864

def primary
  @primary
end

#start_dateString

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

Returns:

  • (String)


1870
1871
1872
# File 'generated/google/apis/plus_v1/classes.rb', line 1870

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)


1875
1876
1877
# File 'generated/google/apis/plus_v1/classes.rb', line 1875

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)


1883
1884
1885
# File 'generated/google/apis/plus_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
# File 'generated/google/apis/plus_v1/classes.rb', line 1890

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