Class: Playbook::PbHomeAddressStreet::HomeAddressStreet
- Inherits:
-
Object
- Object
- Playbook::PbHomeAddressStreet::HomeAddressStreet
show all
- Includes:
- Playbook::Props
- Defined in:
- app/pb_kits/playbook/pb_home_address_street/home_address_street.rb
Instance Method Summary
collapse
#dark_props, #generate_classname, #generate_classname_without_spacing, #initialize, #prop, #spacing_options, #spacing_props, #spacing_values
Instance Method Details
#address_house_style ⇒ Object
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_style2 ⇒ Object
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_state ⇒ Object
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_zip ⇒ Object
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
|
#classname ⇒ Object
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
|
#separator ⇒ Object
48
49
50
|
# File 'app/pb_kits/playbook/pb_home_address_street/home_address_street.rb', line 48
def separator
house_style ? "\u00b7" : ""
end
|
#zip ⇒ Object
36
37
38
|
# File 'app/pb_kits/playbook/pb_home_address_street/home_address_street.rb', line 36
def zip
zipcode.to_s
end
|