Class: Telegram::Bot::Types::OwnedGiftUnique
- Defined in:
- sig/telegram/bot/types/owned_gift_unique.rbs
Instance Attribute Summary collapse
-
#can_be_transferred ⇒ true?
readonly
Returns the value of attribute can_be_transferred.
-
#gift ⇒ UniqueGift
readonly
Returns the value of attribute gift.
-
#is_saved ⇒ true?
readonly
Returns the value of attribute is_saved.
-
#next_transfer_date ⇒ Integer?
readonly
Returns the value of attribute next_transfer_date.
-
#owned_gift_id ⇒ String?
readonly
Returns the value of attribute owned_gift_id.
-
#send_date ⇒ Integer
readonly
Returns the value of attribute send_date.
-
#sender_user ⇒ User?
readonly
Returns the value of attribute sender_user.
-
#transfer_star_count ⇒ Integer?
readonly
Returns the value of attribute transfer_star_count.
-
#type ⇒ String
readonly
Returns the value of attribute type.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#can_be_transferred ⇒ true? (readonly)
Returns the value of attribute can_be_transferred.
14 15 16 |
# File 'sig/telegram/bot/types/owned_gift_unique.rbs', line 14 def can_be_transferred @can_be_transferred end |
#gift ⇒ UniqueGift (readonly)
Returns the value of attribute gift.
9 10 11 |
# File 'sig/telegram/bot/types/owned_gift_unique.rbs', line 9 def gift @gift end |
#is_saved ⇒ true? (readonly)
Returns the value of attribute is_saved.
13 14 15 |
# File 'sig/telegram/bot/types/owned_gift_unique.rbs', line 13 def is_saved @is_saved end |
#next_transfer_date ⇒ Integer? (readonly)
Returns the value of attribute next_transfer_date.
16 17 18 |
# File 'sig/telegram/bot/types/owned_gift_unique.rbs', line 16 def next_transfer_date @next_transfer_date end |
#owned_gift_id ⇒ String? (readonly)
Returns the value of attribute owned_gift_id.
10 11 12 |
# File 'sig/telegram/bot/types/owned_gift_unique.rbs', line 10 def owned_gift_id @owned_gift_id end |
#send_date ⇒ Integer (readonly)
Returns the value of attribute send_date.
12 13 14 |
# File 'sig/telegram/bot/types/owned_gift_unique.rbs', line 12 def send_date @send_date end |
#sender_user ⇒ User? (readonly)
Returns the value of attribute sender_user.
11 12 13 |
# File 'sig/telegram/bot/types/owned_gift_unique.rbs', line 11 def sender_user @sender_user end |
#transfer_star_count ⇒ Integer? (readonly)
Returns the value of attribute transfer_star_count.
15 16 17 |
# File 'sig/telegram/bot/types/owned_gift_unique.rbs', line 15 def transfer_star_count @transfer_star_count end |
#type ⇒ String (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'sig/telegram/bot/types/owned_gift_unique.rbs', line 8 def type @type end |
Class Method Details
.new(type:, gift:, owned_gift_id:, sender_user:, send_date:, is_saved:, can_be_transferred:, transfer_star_count:, next_transfer_date:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/owned_gift_unique.rbs', line 6
def self.new: (?type: String, gift: UniqueGift, ?owned_gift_id: String, ?sender_user: User, send_date: Integer, ?is_saved: true, ?can_be_transferred: true, ?transfer_star_count: Integer, ?next_transfer_date: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|