Class: Telegram::Bot::Types::OwnedGiftUnique

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/owned_gift_unique.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

#can_be_transferredtrue? (readonly)

Returns the value of attribute can_be_transferred.

Returns:

  • (true, nil)


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

def can_be_transferred
  @can_be_transferred
end

#giftUniqueGift (readonly)

Returns the value of attribute gift.

Returns:



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

def gift
  @gift
end

#is_savedtrue? (readonly)

Returns the value of attribute is_saved.

Returns:

  • (true, nil)


13
14
15
# File 'sig/telegram/bot/types/owned_gift_unique.rbs', line 13

def is_saved
  @is_saved
end

#next_transfer_dateInteger? (readonly)

Returns the value of attribute next_transfer_date.

Returns:

  • (Integer, nil)


16
17
18
# File 'sig/telegram/bot/types/owned_gift_unique.rbs', line 16

def next_transfer_date
  @next_transfer_date
end

#owned_gift_idString? (readonly)

Returns the value of attribute owned_gift_id.

Returns:

  • (String, nil)


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

def owned_gift_id
  @owned_gift_id
end

#send_dateInteger (readonly)

Returns the value of attribute send_date.

Returns:

  • (Integer)


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

def send_date
  @send_date
end

#sender_userUser? (readonly)

Returns the value of attribute sender_user.

Returns:



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

def sender_user
  @sender_user
end

#transfer_star_countInteger? (readonly)

Returns the value of attribute transfer_star_count.

Returns:

  • (Integer, nil)


15
16
17
# File 'sig/telegram/bot/types/owned_gift_unique.rbs', line 15

def transfer_star_count
  @transfer_star_count
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


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

Overloads:

  • .new(type:, gift:, owned_gift_id:, sender_user:, send_date:, is_saved:, can_be_transferred:, transfer_star_count:, next_transfer_date:) ⇒ instance

    Parameters:

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

    Returns:

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

    Parameters:

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

    Returns:

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