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