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