Class: Telegram::Bot::Types::GiftInfo
- Defined in:
- sig/telegram/bot/types/gift_info.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_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.
-
#text ⇒ String?
readonly
Returns the value of attribute text.
-
#unique_gift_number ⇒ Integer?
readonly
Returns the value of attribute unique_gift_number.
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.
13 14 15 |
# File 'sig/telegram/bot/types/gift_info.rbs', line 13 def can_be_upgraded @can_be_upgraded end |
#convert_star_count ⇒ Integer? (readonly)
Returns the value of attribute convert_star_count.
10 11 12 |
# File 'sig/telegram/bot/types/gift_info.rbs', line 10 def convert_star_count @convert_star_count end |
#entities ⇒ Array[MessageEntity]? (readonly)
Returns the value of attribute entities.
15 16 17 |
# File 'sig/telegram/bot/types/gift_info.rbs', line 15 def entities @entities end |
#gift ⇒ Gift (readonly)
Returns the value of attribute gift.
8 9 10 |
# File 'sig/telegram/bot/types/gift_info.rbs', line 8 def gift @gift end |
#is_private ⇒ true? (readonly)
Returns the value of attribute is_private.
16 17 18 |
# File 'sig/telegram/bot/types/gift_info.rbs', line 16 def is_private @is_private end |
#is_upgrade_separate ⇒ true? (readonly)
Returns the value of attribute is_upgrade_separate.
12 13 14 |
# File 'sig/telegram/bot/types/gift_info.rbs', line 12 def is_upgrade_separate @is_upgrade_separate end |
#owned_gift_id ⇒ String? (readonly)
Returns the value of attribute owned_gift_id.
9 10 11 |
# File 'sig/telegram/bot/types/gift_info.rbs', line 9 def owned_gift_id @owned_gift_id end |
#prepaid_upgrade_star_count ⇒ Integer? (readonly)
Returns the value of attribute prepaid_upgrade_star_count.
11 12 13 |
# File 'sig/telegram/bot/types/gift_info.rbs', line 11 def prepaid_upgrade_star_count @prepaid_upgrade_star_count end |
#text ⇒ String? (readonly)
Returns the value of attribute text.
14 15 16 |
# File 'sig/telegram/bot/types/gift_info.rbs', line 14 def text @text end |
#unique_gift_number ⇒ Integer? (readonly)
Returns the value of attribute unique_gift_number.
17 18 19 |
# File 'sig/telegram/bot/types/gift_info.rbs', line 17 def unique_gift_number @unique_gift_number end |
Class Method Details
.new(gift:, owned_gift_id:, convert_star_count:, prepaid_upgrade_star_count:, is_upgrade_separate:, can_be_upgraded:, text:, entities:, is_private:, unique_gift_number:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/gift_info.rbs', line 6
def self.new: (gift: Gift, ?owned_gift_id: String, ?convert_star_count: Integer, ?prepaid_upgrade_star_count: Integer, ?is_upgrade_separate: true, ?can_be_upgraded: true, ?text: String, ?entities: Array[MessageEntity], ?is_private: true, ?unique_gift_number: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|