Class: TD::Types::Date

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

Overview

Represents a date according to the Gregorian calendar.

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/date.rb', line 7

def day
  @day
end

#monthInteger

Month, 1-12.

Returns:

  • (Integer)

    the current value of month



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

def month
  @month
end

#yearInteger

Year, 1-9999.

Returns:

  • (Integer)

    the current value of year



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

def year
  @year
end