Class: Playbook::PbHomeAddressStreet::HomeAddressStreet

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

Instance Method Summary collapse

Methods inherited from KitBase

#object

Methods included from Cursor

#cursor_options, #cursor_props, #cursor_values, included

Methods included from Display

#display_options, #display_props, #display_values, included

Methods included from Shadow

included, #shadow_options, #shadow_props, #shadow_values

Methods included from NumberSpacing

included

Methods included from ZIndex

included

Methods included from Spacing

included, #max_width_options, #max_width_props, #max_width_values, #spacing_options, #spacing_props, #spacing_values

Methods included from Classnames

#generate_classname, #generate_classname_without_spacing, included

Methods included from Playbook::Props

#initialize, #prop

Methods included from Playbook::PbKitHelper

#pb_rails

Methods included from Playbook::PbFormsHelper

#pb_form_with

Instance Method Details

#address_house_styleObject



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

def address_house_style
  [address&.titleize, house_style].join(separator)
end

#address_house_style2Object



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

def address_house_style2
  address_cont&.titleize
end

#city_stateObject



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

def city_state
  [city&.titleize, state].join(", ")
end

#city_state_zipObject



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

def city_state_zip
  [city_state, zipcode].join(" ")
end

#classnameObject



20
21
22
# File 'app/pb_kits/playbook/pb_home_address_street/home_address_street.rb', line 20

def classname
  generate_classname("pb_home_address_street_kit", dark_class)
end

#emphasis_partialObject



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

def emphasis_partial
  File.join(File.dirname(self.class.source_location), "_#{emphasis}_emphasis")
end

#separatorObject



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

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

#zipObject



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

def zip
  zipcode.to_s
end