Class: Google::Apis::PeopleV1::Birthday
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::Birthday
- 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 birthday. At least one of the date
and text
fields are
specified. The date
and text
fields typically represent the same
date, but are not guaranteed to.
Instance Attribute Summary collapse
-
#date ⇒ Google::Apis::PeopleV1::Date
Represents a whole calendar date, for example a date of birth.
-
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
-
#text ⇒ String
A free-form string representing the user's birthday.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Birthday
constructor
A new instance of Birthday.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Birthday
Returns a new instance of Birthday
1498 1499 1500 |
# File 'generated/google/apis/people_v1/classes.rb', line 1498 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date ⇒ Google::Apis::PeopleV1::Date
Represents a whole calendar date, for example a date of birth. The time
of day and time zone are either specified elsewhere or are not
significant. The date is relative to the
Proleptic Gregorian Calendar.
The day may be 0 to represent a year and month where the day is not
significant. The year may be 0 to represent a month and day independent
of year; for example, anniversary date.
Corresponds to the JSON property date
1496 1497 1498 |
# File 'generated/google/apis/people_v1/classes.rb', line 1496 def date @date end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
1484 1485 1486 |
# File 'generated/google/apis/people_v1/classes.rb', line 1484 def @metadata end |
#text ⇒ String
A free-form string representing the user's birthday.
Corresponds to the JSON property text
1479 1480 1481 |
# File 'generated/google/apis/people_v1/classes.rb', line 1479 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1503 1504 1505 1506 1507 |
# File 'generated/google/apis/people_v1/classes.rb', line 1503 def update!(**args) @text = args[:text] if args.key?(:text) @metadata = args[:metadata] if args.key?(:metadata) @date = args[:date] if args.key?(:date) end |