class Playbook::PbHomeAddressStreet::HomeAddressStreet
def address_house_style
def address_house_style [address&.titleize, house_style].join(separator) end
def address_house_style2
def address_house_style2 address_cont&.titleize end
def city_emphasis_props
def city_emphasis_props { address_house_style: address_house_style, address_house_style2: address_house_style2, city_state: city_state, dark: dark, home_id: home_id, home_url: home_url, target: target_option, new_window: new_window, territory: territory, zip: zip, } end
def city_state
def city_state [city&.titleize, state].join(", ") end
def city_state_zip
def city_state_zip [city_state, zipcode].join(" ") end
def classname
def classname generate_classname("pb_home_address_street_kit", dark_class) end
def dark_class
def dark_class dark ? "dark" : nil end
def separator
def separator house_style ? " \u00b7 " : "" end
def street_emphasis_props
def street_emphasis_props { address_house_style: address_house_style, address_house_style2: address_house_style2, city_state_zip: city_state_zip, dark: dark, home_id: home_id, home_url: home_url, target: target_option, new_window: new_window, territory: territory, } end
def target_option
def target_option if target && home_url target elsif new_window "_blank" else "_self" end end
def zip
def zip zipcode.to_s end