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