Class: Telegram::Bot::Types::ShippingAddress
- Defined in:
- sig/telegram/bot/types/shipping_address.rbs
Instance Attribute Summary collapse
-
#city ⇒ String
readonly
Returns the value of attribute city.
-
#country_code ⇒ String
readonly
Returns the value of attribute country_code.
-
#post_code ⇒ String
readonly
Returns the value of attribute post_code.
-
#state ⇒ String
readonly
Returns the value of attribute state.
-
#street_line1 ⇒ String
readonly
Returns the value of attribute street_line1.
-
#street_line2 ⇒ String
readonly
Returns the value of attribute street_line2.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#city ⇒ String (readonly)
Returns the value of attribute city.
10 11 12 |
# File 'sig/telegram/bot/types/shipping_address.rbs', line 10 def city @city end |
#country_code ⇒ String (readonly)
Returns the value of attribute country_code.
8 9 10 |
# File 'sig/telegram/bot/types/shipping_address.rbs', line 8 def country_code @country_code end |
#post_code ⇒ String (readonly)
Returns the value of attribute post_code.
13 14 15 |
# File 'sig/telegram/bot/types/shipping_address.rbs', line 13 def post_code @post_code end |
#state ⇒ String (readonly)
Returns the value of attribute state.
9 10 11 |
# File 'sig/telegram/bot/types/shipping_address.rbs', line 9 def state @state end |
#street_line1 ⇒ String (readonly)
Returns the value of attribute street_line1.
11 12 13 |
# File 'sig/telegram/bot/types/shipping_address.rbs', line 11 def street_line1 @street_line1 end |
#street_line2 ⇒ String (readonly)
Returns the value of attribute street_line2.
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
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
|