Class: TD::Types::Birthdate

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/birthdate.rb

Overview

Represents a birthdate of a user.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#dayInteger

Day of the month; 1-31.

Returns:

  • (Integer)

    the current value of day



7
8
9
# File 'lib/tdlib/types/birthdate.rb', line 7

def day
  @day
end

#monthInteger

Month of the year; 1-12.

Returns:

  • (Integer)

    the current value of month



7
8
9
# File 'lib/tdlib/types/birthdate.rb', line 7

def month
  @month
end

#yearInteger

Birth year; 0 if unknown.

Returns:

  • (Integer)

    the current value of year



7
8
9
# File 'lib/tdlib/types/birthdate.rb', line 7

def year
  @year
end