Class: Telegram::Bot::Types::OwnedGiftRegular
- Defined in:
- sig/telegram/bot/types/owned_gift_regular.rbs
Instance Attribute Summary collapse
-
#can_be_upgraded ⇒ true?
readonly
Returns the value of attribute can_be_upgraded.
-
#convert_star_count ⇒ Integer?
readonly
Returns the value of attribute convert_star_count.
-
#entities ⇒ Array[MessageEntity]?
readonly
Returns the value of attribute entities.
-
#gift ⇒ Gift
readonly
Returns the value of attribute gift.
-
#is_private ⇒ true?
readonly
Returns the value of attribute is_private.
-
#is_saved ⇒ true?
readonly
Returns the value of attribute is_saved.
-
#is_upgrade_separate ⇒ true?
readonly
Returns the value of attribute is_upgrade_separate.
-
#owned_gift_id ⇒ String?
readonly
Returns the value of attribute owned_gift_id.
-
#prepaid_upgrade_star_count ⇒ Integer?
readonly
Returns the value of attribute prepaid_upgrade_star_count.
-
#send_date ⇒ Integer
readonly
Returns the value of attribute send_date.
-
#sender_user ⇒ User?
readonly
Returns the value of attribute sender_user.
-
#text ⇒ String?
readonly
Returns the value of attribute text.
-
#type ⇒ String
readonly
Returns the value of attribute type.
-
#unique_gift_number ⇒ Integer?
readonly
Returns the value of attribute unique_gift_number.
-
#was_refunded ⇒ true?
readonly
Returns the value of attribute was_refunded.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#can_be_upgraded ⇒ true? (readonly)
Returns the value of attribute can_be_upgraded.
17 18 19 |
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 17 def can_be_upgraded @can_be_upgraded end |
#convert_star_count ⇒ Integer? (readonly)
Returns the value of attribute convert_star_count.
19 20 21 |
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 19 def convert_star_count @convert_star_count end |
#entities ⇒ Array[MessageEntity]? (readonly)
Returns the value of attribute entities.
14 15 16 |
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 14 def entities @entities end |
#gift ⇒ Gift (readonly)
Returns the value of attribute gift.
9 10 11 |
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 9 def gift @gift end |
#is_private ⇒ true? (readonly)
Returns the value of attribute is_private.
15 16 17 |
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 15 def is_private @is_private end |
#is_saved ⇒ true? (readonly)
Returns the value of attribute is_saved.
16 17 18 |
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 16 def is_saved @is_saved end |
#is_upgrade_separate ⇒ true? (readonly)
Returns the value of attribute is_upgrade_separate.
21 22 23 |
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 21 def is_upgrade_separate @is_upgrade_separate end |
#owned_gift_id ⇒ String? (readonly)
Returns the value of attribute owned_gift_id.
10 11 12 |
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 10 def owned_gift_id @owned_gift_id end |
#prepaid_upgrade_star_count ⇒ Integer? (readonly)
Returns the value of attribute prepaid_upgrade_star_count.
20 21 22 |
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 20 def prepaid_upgrade_star_count @prepaid_upgrade_star_count end |
#send_date ⇒ Integer (readonly)
Returns the value of attribute send_date.
12 13 14 |
# File 'sig/telegram/bot/types/owned_gift_regular.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_regular.rbs', line 11 def sender_user @sender_user end |
#text ⇒ String? (readonly)
Returns the value of attribute text.
13 14 15 |
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 13 def text @text end |
#type ⇒ String (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 8 def type @type end |
#unique_gift_number ⇒ Integer? (readonly)
Returns the value of attribute unique_gift_number.
22 23 24 |
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 22 def unique_gift_number @unique_gift_number end |
#was_refunded ⇒ true? (readonly)
Returns the value of attribute was_refunded.
18 19 20 |
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 18 def was_refunded @was_refunded end |
Class Method Details
.new(type:, gift:, owned_gift_id:, sender_user:, send_date:, text:, entities:, is_private:, is_saved:, can_be_upgraded:, was_refunded:, convert_star_count:, prepaid_upgrade_star_count:, is_upgrade_separate:, unique_gift_number:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 6
def self.new: (?type: String, gift: Gift, ?owned_gift_id: String, ?sender_user: User, send_date: Integer, ?text: String, ?entities: Array[MessageEntity], ?is_private: true, ?is_saved: true, ?can_be_upgraded: true, ?was_refunded: true, ?convert_star_count: Integer, ?prepaid_upgrade_star_count: Integer, ?is_upgrade_separate: true, ?unique_gift_number: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|