Module: YieldStarClient::Validations
- Includes:
- Modelish::Validations::ClassMethods
- Included in:
- AmenityMethods, FloorPlanMethods, LeaseTermRentMethods, PropertyMethods, UnitMethods
- Defined in:
- lib/yield_star_client/validations.rb
Instance Method Summary collapse
- #validate_client_name!(client_name) ⇒ Object
- #validate_external_property_id!(external_property_id) ⇒ Object
Instance Method Details
#validate_client_name!(client_name) ⇒ Object
8 9 10 11 |
# File 'lib/yield_star_client/validations.rb', line 8 def validate_client_name!(client_name) validate_required!(:client_name => client_name) validate_length!(:client_name, client_name, 16) end |
#validate_external_property_id!(external_property_id) ⇒ Object
13 14 15 16 |
# File 'lib/yield_star_client/validations.rb', line 13 def validate_external_property_id!(external_property_id) validate_required!(:external_property_id => external_property_id) validate_length!(:external_property_id, external_property_id, 50) end |