Class: Playbook::PbHomeAddressStreet::HomeAddressStreet

Inherits:
Object
  • Object
show all
Includes:
Playbook::Props
Defined in:
app/pb_kits/playbook/pb_home_address_street/home_address_street.rb

Instance Method Summary collapse

Methods included from Playbook::Props

#dark_props, #generate_classname, #generate_classname_without_spacing, #initialize, #prop, #spacing_options, #spacing_props, #spacing_values

Instance Method Details

#address_house_styleObject



40
41
42
# File 'app/pb_kits/playbook/pb_home_address_street/home_address_street.rb', line 40

def address_house_style
  "#{address&.titleize} #{separator} #{house_style}"
end

#address_house_style2Object



44
45
46
# File 'app/pb_kits/playbook/pb_home_address_street/home_address_street.rb', line 44

def address_house_style2
  address_cont&.titleize
end

#city_stateObject



32
33
34
# File 'app/pb_kits/playbook/pb_home_address_street/home_address_street.rb', line 32

def city_state
  "#{city.titleize}, #{state}"
end

#city_state_zipObject



28
29
30
# File 'app/pb_kits/playbook/pb_home_address_street/home_address_street.rb', line 28

def city_state_zip
  "#{city.titleize}, #{state} #{zipcode}"
end

#classnameObject



24
25
26
# File 'app/pb_kits/playbook/pb_home_address_street/home_address_street.rb', line 24

def classname
  generate_classname("pb_home_address_street_kit", dark_class)
end

#separatorObject



48
49
50
# File 'app/pb_kits/playbook/pb_home_address_street/home_address_street.rb', line 48

def separator
  house_style ? "\u00b7" : ""
end

#zipObject



36
37
38
# File 'app/pb_kits/playbook/pb_home_address_street/home_address_street.rb', line 36

def zip
  zipcode.to_s
end