Class: Telegram::Bot::Types::Invoice
- Defined in:
- sig/telegram/bot/types/invoice.rbs
Instance Attribute Summary collapse
-
#currency ⇒ String
readonly
Returns the value of attribute currency.
-
#description ⇒ String
readonly
Returns the value of attribute description.
-
#start_parameter ⇒ String
readonly
Returns the value of attribute start_parameter.
-
#title ⇒ String
readonly
Returns the value of attribute title.
-
#total_amount ⇒ Integer
readonly
Returns the value of attribute total_amount.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#currency ⇒ String (readonly)
Returns the value of attribute currency.
11 12 13 |
# File 'sig/telegram/bot/types/invoice.rbs', line 11 def currency @currency end |
#description ⇒ String (readonly)
Returns the value of attribute description.
9 10 11 |
# File 'sig/telegram/bot/types/invoice.rbs', line 9 def description @description end |
#start_parameter ⇒ String (readonly)
Returns the value of attribute start_parameter.
10 11 12 |
# File 'sig/telegram/bot/types/invoice.rbs', line 10 def start_parameter @start_parameter end |
#title ⇒ String (readonly)
Returns the value of attribute title.
8 9 10 |
# File 'sig/telegram/bot/types/invoice.rbs', line 8 def title @title end |
#total_amount ⇒ Integer (readonly)
Returns the value of attribute total_amount.
12 13 14 |
# File 'sig/telegram/bot/types/invoice.rbs', line 12 def total_amount @total_amount end |
Class Method Details
.new(title:, description:, start_parameter:, currency:, total_amount:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/invoice.rbs', line 6
def self.new: (title: String, description: String, start_parameter: String, currency: String, total_amount: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|