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