Class: Playbook::PbHomeAddressStreet::HomeAddressStreet
- Inherits:
-
KitBase
- Object
- ViewComponent::Base
- KitBase
- Playbook::PbHomeAddressStreet::HomeAddressStreet
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 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
#initialize, #prop
#pb_rails
#pb_form_with
Instance Method Details
#address_house_style ⇒ Object
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_style2 ⇒ Object
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_state ⇒ Object
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_zip ⇒ Object
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
|
#classname ⇒ Object
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_partial ⇒ Object
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
|
#separator ⇒ Object
44
45
46
|
# File 'app/pb_kits/playbook/pb_home_address_street/home_address_street.rb', line 44
def separator
house_style ? " \u00b7 " : ""
end
|
#zip ⇒ Object
32
33
34
|
# File 'app/pb_kits/playbook/pb_home_address_street/home_address_street.rb', line 32
def zip
zipcode.to_s
end
|