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