Class: Telegram::Bot::Types::StarTransaction
- Defined in:
- sig/telegram/bot/types/star_transaction.rbs
Instance Attribute Summary collapse
-
#amount ⇒ Integer
readonly
Returns the value of attribute amount.
-
#date ⇒ Integer
readonly
Returns the value of attribute date.
-
#id ⇒ String
readonly
Returns the value of attribute id.
-
#nanostar_amount ⇒ Integer?
readonly
Returns the value of attribute nanostar_amount.
-
#receiver ⇒ transaction_partner?
readonly
Returns the value of attribute receiver.
-
#source ⇒ transaction_partner?
readonly
Returns the value of attribute source.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#amount ⇒ Integer (readonly)
Returns the value of attribute amount.
9 10 11 |
# File 'sig/telegram/bot/types/star_transaction.rbs', line 9 def amount @amount end |
#date ⇒ Integer (readonly)
Returns the value of attribute date.
11 12 13 |
# File 'sig/telegram/bot/types/star_transaction.rbs', line 11 def date @date end |
#id ⇒ String (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'sig/telegram/bot/types/star_transaction.rbs', line 8 def id @id end |
#nanostar_amount ⇒ Integer? (readonly)
Returns the value of attribute nanostar_amount.
10 11 12 |
# File 'sig/telegram/bot/types/star_transaction.rbs', line 10 def nanostar_amount @nanostar_amount end |
#receiver ⇒ transaction_partner? (readonly)
Returns the value of attribute receiver.
13 14 15 |
# File 'sig/telegram/bot/types/star_transaction.rbs', line 13 def receiver @receiver end |
#source ⇒ transaction_partner? (readonly)
Returns the value of attribute source.
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
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
|