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