Method: NameEntity::Quality#entity_type_is_valid
- Defined in:
- lib/quickbooks/util/name_entity.rb
#entity_type_is_valid ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/quickbooks/util/name_entity.rb', line 48 def entity_type_is_valid if entity_type unless %w(Customer Vendor).include?(entity_type) errors.add(:entity_type, "Entity Type must be either 'Customer' or 'Vendor'") end end end |