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