Class: Telegram::Bot::Types::StarTransaction

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

#amountInteger (readonly)

Returns the value of attribute amount.

Returns:

  • (Integer)


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

def amount
  @amount
end

#dateInteger (readonly)

Returns the value of attribute date.

Returns:

  • (Integer)


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

def date
  @date
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


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

def id
  @id
end

#nanostar_amountInteger? (readonly)

Returns the value of attribute nanostar_amount.

Returns:

  • (Integer, nil)


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

def nanostar_amount
  @nanostar_amount
end

#receivertransaction_partner? (readonly)

Returns the value of attribute receiver.

Returns:

  • (transaction_partner, nil)


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

def receiver
  @receiver
end

#sourcetransaction_partner? (readonly)

Returns the value of attribute source.

Returns:

  • (transaction_partner, nil)


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

def source
  @source
end

Class Method Details

.new(id:, amount:, nanostar_amount:, date:, source:, receiver:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(id:, amount:, nanostar_amount:, date:, source:, receiver:) ⇒ instance

    Parameters:

    • id: (String)
    • amount: (Integer)
    • nanostar_amount: (Integer)
    • date: (Integer)
    • source: (transaction_partner)
    • receiver: (transaction_partner)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/star_transaction.rbs', line 6

def self.new: (id: String, amount: Integer, ?nanostar_amount: Integer, date: Integer, ?source: transaction_partner, ?receiver: transaction_partner) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance