Class: Playbook::PbPersonContact::PersonContact
- Inherits:
-
Object
- Object
- Playbook::PbPersonContact::PersonContact
show all
- Includes:
- Playbook::Props
- Defined in:
- app/pb_kits/playbook/pb_person_contact/person_contact.rb
Instance Method Summary
collapse
#dark_props, #generate_classname, #generate_classname_without_spacing, #initialize, #prop, #spacing_options, #spacing_props, #spacing_values
Instance Method Details
#classname ⇒ Object
22
23
24
|
# File 'app/pb_kits/playbook/pb_person_contact/person_contact.rb', line 22
def classname
generate_classname("pb_person_contact_kit")
end
|
18
19
20
|
# File 'app/pb_kits/playbook/pb_person_contact/person_contact.rb', line 18
def valid_contacts
contacts.reject { |contact| contact[:contact_type] == "wrong-phone" }
end
|
14
15
16
|
# File 'app/pb_kits/playbook/pb_person_contact/person_contact.rb', line 14
def wrong_contacts
contacts.select { |contact| contact[:contact_type] == "wrong-phone" }
end
|