Class: Telegram::Bot::Types::ShippingAddress

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/shipping_address.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

#cityString (readonly)

Returns the value of attribute city.

Returns:

  • (String)


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

def city
  @city
end

#country_codeString (readonly)

Returns the value of attribute country_code.

Returns:

  • (String)


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

def country_code
  @country_code
end

#post_codeString (readonly)

Returns the value of attribute post_code.

Returns:

  • (String)


13
14
15
# File 'sig/telegram/bot/types/shipping_address.rbs', line 13

def post_code
  @post_code
end

#stateString (readonly)

Returns the value of attribute state.

Returns:

  • (String)


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

def state
  @state
end

#street_line1String (readonly)

Returns the value of attribute street_line1.

Returns:

  • (String)


11
12
13
# File 'sig/telegram/bot/types/shipping_address.rbs', line 11

def street_line1
  @street_line1
end

#street_line2String (readonly)

Returns the value of attribute street_line2.

Returns:

  • (String)


12
13
14
# File 'sig/telegram/bot/types/shipping_address.rbs', line 12

def street_line2
  @street_line2
end

Class Method Details

.new(country_code:, state:, city:, street_line1:, street_line2:, post_code:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(country_code:, state:, city:, street_line1:, street_line2:, post_code:) ⇒ instance

    Parameters:

    • country_code: (String)
    • state: (String)
    • city: (String)
    • street_line1: (String)
    • street_line2: (String)
    • post_code: (String)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/shipping_address.rbs', line 6

def self.new: (country_code: String, state: String, city: String, street_line1: String, street_line2: String, post_code: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance