Class: Telegram::Bot::Types::Birthdate
- Defined in:
- sig/telegram/bot/types/birthdate.rbs
Instance Attribute Summary collapse
-
#day ⇒ Integer
readonly
Returns the value of attribute day.
-
#month ⇒ Integer
readonly
Returns the value of attribute month.
-
#year ⇒ Integer?
readonly
Returns the value of attribute year.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#day ⇒ Integer (readonly)
Returns the value of attribute day.
8 9 10 |
# File 'sig/telegram/bot/types/birthdate.rbs', line 8 def day @day end |
#month ⇒ Integer (readonly)
Returns the value of attribute month.
9 10 11 |
# File 'sig/telegram/bot/types/birthdate.rbs', line 9 def month @month end |
#year ⇒ Integer? (readonly)
Returns the value of attribute year.
10 11 12 |
# File 'sig/telegram/bot/types/birthdate.rbs', line 10 def year @year end |
Class Method Details
.new(day:, month:, year:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/birthdate.rbs', line 6
def self.new: (day: Integer, month: Integer, ?year: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|