Class: Google::Apis::PeopleV1::Occupation

Inherits:
Object
  • Object
show all
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 occupation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Occupation

Returns a new instance of Occupation.



1534
1535
1536
# File 'generated/google/apis/people_v1/classes.rb', line 1534

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

Instance Attribute Details

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



1527
1528
1529
# File 'generated/google/apis/people_v1/classes.rb', line 1527

def 
  @metadata
end

#valueString

The occupation; for example, carpenter. Corresponds to the JSON property value

Returns:

  • (String)


1532
1533
1534
# File 'generated/google/apis/people_v1/classes.rb', line 1532

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1539
1540
1541
1542
# File 'generated/google/apis/people_v1/classes.rb', line 1539

def update!(**args)
  @metadata = args[:metadata] if args.key?(:metadata)
  @value = args[:value] if args.key?(:value)
end