Communication
The communication
object has the following attributes:
- communication.id
- communication.type
- communication.value
- communication.is_first_line
- communication.image_url
- communication.created_at
- communication.updated_at
- communication.email?
- communication.telephone?
- communication.website?
- communication.fax?
- communication.facebook?
- communication.twitter?
- communication.address?
communication.id
Returns id of a communication.
communication.type
Returns the type of a communication. Its value is one of these ["Tel", "Tel & Fax", "Fax", "Mobile Phone", "E-Mail", "Website", "P.O. Box"]
.
communication.value
Returns the value of a communication.
communication.is_first_line
Returns true if it is first line.
communication.image_url
Returns the image_url of a communication. The value of this attribute is available when it is an email.
communication.created_at
Returns the timestamp of when the communication was created. Use the date filter to format the timestamp.
communication.updated_at
Returns the timestamp of when the communication was last updated. Use the date filter to format the timestamp.
communication.email?
Returns true only if communication type is e-mail
.
communication.telephone?
Returns true only if communication type is one of these ['tel', 'tel & fax', 'fax', 'mobile', 'mobile phone', 'toll free']
.
communication.website?
Returns true only if communication type is website
.
communication.fax?
Returns true only if communication type is one of these ['tel & fax', 'fax']
.
communication.facebook?
Returns true only if communication type is facebook
.
communication.twitter?
Returns true only if communication type is twitter
.
communication.address?
Returns true only if communication type is address
.