Class: Xeroizer::Record::Contact

Inherits:
Base
  • Object
show all
Defined in:
lib/xeroizer/models/contact.rb

Constant Summary

CONTACT_STATUS =
{
  'ACTIVE' =>     'Active',
  'DELETED' =>    'Deleted',
  'ARCHIVED' => 'Archived'
}

Instance Attribute Summary

Attributes inherited from Base

#attributes, #complete_record_downloaded, #errors, #model, #parent

Instance Method Summary collapse

Methods inherited from Base

#[], #[]=, #as_json, build, #complete_record_downloaded?, #download_complete_record!, #initialize, #inspect, #new_model_class, #new_record?, #non_calculated_attributes, #save, #saved!, #to_h, #to_json, #update_attributes

Methods included from XmlHelper

included

Methods included from ValidationHelper

included

Methods included from RecordAssociationHelper

included

Methods included from ModelDefinitionHelper

included

Methods included from ClassLevelInheritableAttributes

included

Constructor Details

This class inherits a constructor from Xeroizer::Record::Base

Instance Method Details

#email_address?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/xeroizer/models/contact.rb', line 50

def email_address?
  email_address.present?
end