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 or partial calendar date, such as a birthday.
-
#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.
Constructor Details
#initialize(**args) ⇒ Birthday
Returns a new instance of Birthday.
218 219 220 |
# File 'generated/google/apis/people_v1/classes.rb', line 218 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date ⇒ Google::Apis::PeopleV1::Date
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values * A month
and day value, with a zero year, such as an anniversary * A year on its own,
with zero month and day values * A year and month value, with a zero day, such
as a credit card expiration date Related types are google.type.TimeOfDay and
google.protobuf.Timestamp
.
Corresponds to the JSON property date
206 207 208 |
# File 'generated/google/apis/people_v1/classes.rb', line 206 def date @date end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
211 212 213 |
# File 'generated/google/apis/people_v1/classes.rb', line 211 def @metadata end |
#text ⇒ String
A free-form string representing the user's birthday.
Corresponds to the JSON property text
216 217 218 |
# File 'generated/google/apis/people_v1/classes.rb', line 216 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
223 224 225 226 227 |
# File 'generated/google/apis/people_v1/classes.rb', line 223 def update!(**args) @date = args[:date] if args.key?(:date) @metadata = args[:metadata] if args.key?(:metadata) @text = args[:text] if args.key?(:text) end |