Class: Telegram::Bot::Types::UniqueGiftInfo

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/unique_gift_info.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#giftUniqueGift (readonly)

Returns the value of attribute gift.

Returns:



8
9
10
# File 'sig/telegram/bot/types/unique_gift_info.rbs', line 8

def gift
  @gift
end

#last_resale_amountInteger? (readonly)

Returns the value of attribute last_resale_amount.

Returns:

  • (Integer, nil)


11
12
13
# File 'sig/telegram/bot/types/unique_gift_info.rbs', line 11

def last_resale_amount
  @last_resale_amount
end

#last_resale_currencyString? (readonly)

Returns the value of attribute last_resale_currency.

Returns:

  • (String, nil)


10
11
12
# File 'sig/telegram/bot/types/unique_gift_info.rbs', line 10

def last_resale_currency
  @last_resale_currency
end

#next_transfer_dateInteger? (readonly)

Returns the value of attribute next_transfer_date.

Returns:

  • (Integer, nil)


14
15
16
# File 'sig/telegram/bot/types/unique_gift_info.rbs', line 14

def next_transfer_date
  @next_transfer_date
end

#originString (readonly)

Returns the value of attribute origin.

Returns:

  • (String)


9
10
11
# File 'sig/telegram/bot/types/unique_gift_info.rbs', line 9

def origin
  @origin
end

#owned_gift_idString? (readonly)

Returns the value of attribute owned_gift_id.

Returns:

  • (String, nil)


12
13
14
# File 'sig/telegram/bot/types/unique_gift_info.rbs', line 12

def owned_gift_id
  @owned_gift_id
end

#transfer_star_countInteger? (readonly)

Returns the value of attribute transfer_star_count.

Returns:

  • (Integer, nil)


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

Overloads:

  • .new(gift:, origin:, last_resale_currency:, last_resale_amount:, owned_gift_id:, transfer_star_count:, next_transfer_date:) ⇒ instance

    Parameters:

    • gift: (UniqueGift)
    • origin: (String)
    • last_resale_currency: (String)
    • last_resale_amount: (Integer)
    • owned_gift_id: (String)
    • transfer_star_count: (Integer)
    • next_transfer_date: (Integer)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (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