Class: Google::Apis::PeopleV1::AgeRangeType

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 age range.

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) ⇒ AgeRangeType

Returns a new instance of AgeRangeType



831
832
833
# File 'generated/google/apis/people_v1/classes.rb', line 831

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

Instance Attribute Details

#age_rangeString

The age range. Corresponds to the JSON property ageRange

Returns:

  • (String)


829
830
831
# File 'generated/google/apis/people_v1/classes.rb', line 829

def age_range
  @age_range
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



824
825
826
# File 'generated/google/apis/people_v1/classes.rb', line 824

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



836
837
838
839
# File 'generated/google/apis/people_v1/classes.rb', line 836

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