Class: Telegram::Bot::Types::AcceptedGiftTypes

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/accepted_gift_types.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

#gifts_from_channelsBoolean (readonly)

Returns the value of attribute gifts_from_channels.

Returns:

  • (Boolean)


12
13
14
# File 'sig/telegram/bot/types/accepted_gift_types.rbs', line 12

def gifts_from_channels
  @gifts_from_channels
end

#limited_giftsBoolean (readonly)

Returns the value of attribute limited_gifts.

Returns:

  • (Boolean)


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

def limited_gifts
  @limited_gifts
end

#premium_subscriptionBoolean (readonly)

Returns the value of attribute premium_subscription.

Returns:

  • (Boolean)


11
12
13
# File 'sig/telegram/bot/types/accepted_gift_types.rbs', line 11

def premium_subscription
  @premium_subscription
end

#unique_giftsBoolean (readonly)

Returns the value of attribute unique_gifts.

Returns:

  • (Boolean)


10
11
12
# File 'sig/telegram/bot/types/accepted_gift_types.rbs', line 10

def unique_gifts
  @unique_gifts
end

#unlimited_giftsBoolean (readonly)

Returns the value of attribute unlimited_gifts.

Returns:

  • (Boolean)


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

def unlimited_gifts
  @unlimited_gifts
end

Class Method Details

.new(unlimited_gifts:, limited_gifts:, unique_gifts:, premium_subscription:, gifts_from_channels:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(unlimited_gifts:, limited_gifts:, unique_gifts:, premium_subscription:, gifts_from_channels:) ⇒ instance

    Parameters:

    • unlimited_gifts: (Boolean)
    • limited_gifts: (Boolean)
    • unique_gifts: (Boolean)
    • premium_subscription: (Boolean)
    • gifts_from_channels: (Boolean)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/accepted_gift_types.rbs', line 6

def self.new: (unlimited_gifts: bool, limited_gifts: bool, unique_gifts: bool, premium_subscription: bool, gifts_from_channels: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance