Class: Google::Apis::PeopleV1::AgeRangeType
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::AgeRangeType
- 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 age range.
Instance Attribute Summary collapse
-
#age_range ⇒ String
The age range.
-
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AgeRangeType
constructor
A new instance of AgeRangeType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AgeRangeType
Returns a new instance of AgeRangeType
132 133 134 |
# File 'generated/google/apis/people_v1/classes.rb', line 132 def initialize(**args) update!(**args) end |
Instance Attribute Details
#age_range ⇒ String
The age range.
Corresponds to the JSON property ageRange
125 126 127 |
# File 'generated/google/apis/people_v1/classes.rb', line 125 def age_range @age_range end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
130 131 132 |
# File 'generated/google/apis/people_v1/classes.rb', line 130 def @metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
137 138 139 140 |
# File 'generated/google/apis/people_v1/classes.rb', line 137 def update!(**args) @age_range = args[:age_range] if args.key?(:age_range) @metadata = args[:metadata] if args.key?(:metadata) end |