Class: Google::Apis::PeopleV1::Occupation
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::Occupation
- 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
-
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
-
#value ⇒ String
The occupation; for example,
carpenter
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Occupation
constructor
A new instance of Occupation.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#metadata ⇒ Google::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 |
#value ⇒ String
The occupation; for example, carpenter
.
Corresponds to the JSON property value
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 |