Shippex.Address.state_without_country
You're seeing just the function
state_without_country
, go back to Shippex.Address module for more information.
Specs
Returns the state code without its country code prefix.
iex> address = Shippex.Address.new!(%{
...> first_name: "Earl",
...> last_name: "Grey",
...> phone: "123-123-1234",
...> address: "9999 Hobby Lane",
...> address_line_2: nil,
...> city: "Austin",
...> state: "US-TX",
...> postal_code: "78703",
...> country: "US"
...> })
iex> Address.state_without_country(address)
"TX"