class Starling::Resources::AddressResource
A resource representing an address in the response from the Addresses API
Public Instance Methods
city()
click to toggle source
@return [String] the city where the address is located
# File lib/starling/resources/address_resource.rb, line 6 def city parsed_data['city'] end
country()
click to toggle source
@return [String] the country where the addresses is located (e.g. “GBR”)
# File lib/starling/resources/address_resource.rb, line 11 def country parsed_data['country'] end
postcode()
click to toggle source
@return [String] the postcode of the address
# File lib/starling/resources/address_resource.rb, line 16 def postcode parsed_data['postcode'] end
street_address()
click to toggle source
@return [String] the street address of the address
# File lib/starling/resources/address_resource.rb, line 21 def street_address parsed_data['streetAddress'] end