Class: Telegram::Bot::Types::AcceptedGiftTypes
- Defined in:
- sig/telegram/bot/types/accepted_gift_types.rbs
Instance Attribute Summary collapse
-
#gifts_from_channels ⇒ Boolean
readonly
Returns the value of attribute gifts_from_channels.
-
#limited_gifts ⇒ Boolean
readonly
Returns the value of attribute limited_gifts.
-
#premium_subscription ⇒ Boolean
readonly
Returns the value of attribute premium_subscription.
-
#unique_gifts ⇒ Boolean
readonly
Returns the value of attribute unique_gifts.
-
#unlimited_gifts ⇒ Boolean
readonly
Returns the value of attribute unlimited_gifts.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#gifts_from_channels ⇒ Boolean (readonly)
Returns the value of attribute gifts_from_channels.
12 13 14 |
# File 'sig/telegram/bot/types/accepted_gift_types.rbs', line 12 def gifts_from_channels @gifts_from_channels end |
#limited_gifts ⇒ Boolean (readonly)
Returns the value of attribute limited_gifts.
9 10 11 |
# File 'sig/telegram/bot/types/accepted_gift_types.rbs', line 9 def limited_gifts @limited_gifts end |
#premium_subscription ⇒ Boolean (readonly)
Returns the value of attribute premium_subscription.
11 12 13 |
# File 'sig/telegram/bot/types/accepted_gift_types.rbs', line 11 def premium_subscription @premium_subscription end |
#unique_gifts ⇒ Boolean (readonly)
Returns the value of attribute unique_gifts.
10 11 12 |
# File 'sig/telegram/bot/types/accepted_gift_types.rbs', line 10 def unique_gifts @unique_gifts end |
#unlimited_gifts ⇒ Boolean (readonly)
Returns the value of attribute unlimited_gifts.
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
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
|