Class: Telegram::Bot::Types::StarAmount
- Defined in:
- sig/telegram/bot/types/star_amount.rbs
Instance Attribute Summary collapse
-
#amount ⇒ Integer
readonly
Returns the value of attribute amount.
-
#nanostar_amount ⇒ Integer?
readonly
Returns the value of attribute nanostar_amount.
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.
8 9 10 |
# File 'sig/telegram/bot/types/star_amount.rbs', line 8 def amount @amount end |
#nanostar_amount ⇒ Integer? (readonly)
Returns the value of attribute nanostar_amount.
9 10 11 |
# File 'sig/telegram/bot/types/star_amount.rbs', line 9 def nanostar_amount @nanostar_amount end |
Class Method Details
.new(amount:, nanostar_amount:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/star_amount.rbs', line 6
def self.new: (amount: Integer, ?nanostar_amount: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|