class
Tourmaline::LocationAddress
- Tourmaline::LocationAddress
- Reference
- Object
Overview
Describes the physical address of a location.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(country_code : String, state : String | Nil = nil, city : String | Nil = nil, street : String | Nil = nil)
Instance Method Summary
-
#city : String | Nil
Optional.
-
#city=(city : String | Nil)
Optional.
-
#country_code : String
The two-letter ISO 3166-1 alpha-2 country code of the country where the location is located
-
#country_code=(country_code : String)
The two-letter ISO 3166-1 alpha-2 country code of the country where the location is located
-
#state : String | Nil
Optional.
-
#state=(state : String | Nil)
Optional.
-
#street : String | Nil
Optional.
-
#street=(street : String | Nil)
Optional.
Constructor Detail
def self.new(country_code : String, state : String | Nil = nil, city : String | Nil = nil, street : String | Nil = nil)
#
Instance Method Detail
def country_code : String
#
The two-letter ISO 3166-1 alpha-2 country code of the country where the location is located
def country_code=(country_code : String)
#
The two-letter ISO 3166-1 alpha-2 country code of the country where the location is located