Skip to content

class Tourmaline::Birthdate
inherits Reference #

Describes the birthdate of a user.

Included modules

JSON::Serializable

Constructors#

.new(day, month, year : Int32 | Int64 | Nil = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#day : Int32 | Int64 #

Day of the user's birth; 1-31

View source

#day=(day : Int32 | Int64) #

Day of the user's birth; 1-31

View source

#month : Int32 | Int64 #

Month of the user's birth; 1-12

View source

#month=(month : Int32 | Int64) #

Month of the user's birth; 1-12

View source

#year : Int32 | Int64 | Nil #

Optional. Year of the user's birth

View source

#year=(year : Int32 | Int64 | Nil) #

Optional. Year of the user's birth

View source