Class: Telegram::Bot::Types::LocationAddress
- Defined in:
- sig/telegram/bot/types/location_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.
-
#state ⇒ String?
readonly
Returns the value of attribute state.
-
#street ⇒ String?
readonly
Returns the value of attribute street.
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/location_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/location_address.rbs', line 8 def country_code @country_code end |
#state ⇒ String? (readonly)
Returns the value of attribute state.
9 10 11 |
# File 'sig/telegram/bot/types/location_address.rbs', line 9 def state @state end |
#street ⇒ String? (readonly)
Returns the value of attribute street.
11 12 13 |
# File 'sig/telegram/bot/types/location_address.rbs', line 11 def street @street end |
Class Method Details
.new(country_code:, state:, city:, street:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/location_address.rbs', line 6
def self.new: (country_code: String, ?state: String, ?city: String, ?street: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|