Class: Telegram::Bot::Types::OrderInfo

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/order_info.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#emailString? (readonly)

Returns the value of attribute email.

Returns:

  • (String, nil)


10
11
12
# File 'sig/telegram/bot/types/order_info.rbs', line 10

def email
  @email
end

#nameString? (readonly)

Returns the value of attribute name.

Returns:

  • (String, nil)


8
9
10
# File 'sig/telegram/bot/types/order_info.rbs', line 8

def name
  @name
end

#phone_numberString? (readonly)

Returns the value of attribute phone_number.

Returns:

  • (String, nil)


9
10
11
# File 'sig/telegram/bot/types/order_info.rbs', line 9

def phone_number
  @phone_number
end

#shipping_addressShippingAddress? (readonly)

Returns the value of attribute shipping_address.

Returns:



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

Overloads:

  • .new(name:, phone_number:, email:, shipping_address:) ⇒ instance

    Parameters:

    • name: (String)
    • phone_number: (String)
    • email: (String)
    • shipping_address: (ShippingAddress)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (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