class Hamilton::Types::Birthdate

Overview

Describes the birthdate of a user.

Included Modules

Defined in:

types/birthday.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def day : Int32 #

Day of the user's birth; 1-31.


def day=(day : Int32) #

Day of the user's birth; 1-31.


def month : Int32 #

Month of the user's birth; 1-12.


def month=(month : Int32) #

Month of the user's birth; 1-12.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def year : Int32 | Nil #

Year of the user's birth.


def year=(year : Int32 | Nil) #

Year of the user's birth.