Class: Telegram::Bot::Types::Birthdate

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/birthdate.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#dayInteger (readonly)

Returns the value of attribute day.

Returns:

  • (Integer)


8
9
10
# File 'sig/telegram/bot/types/birthdate.rbs', line 8

def day
  @day
end

#monthInteger (readonly)

Returns the value of attribute month.

Returns:

  • (Integer)


9
10
11
# File 'sig/telegram/bot/types/birthdate.rbs', line 9

def month
  @month
end

#yearInteger? (readonly)

Returns the value of attribute year.

Returns:

  • (Integer, nil)


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

Overloads:

  • .new(day:, month:, year:) ⇒ instance

    Parameters:

    • day: (Integer)
    • month: (Integer)
    • year: (Integer)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (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