Method: PureCloud::Phone#valid?
- Defined in:
- lib/purecloudplatformclientv2/models/phone.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 |
# File 'lib/purecloudplatformclientv2/models/phone.rb', line 268 def valid? if @name.nil? return false end allowed_values = ["active", "inactive", "deleted"] if @state && !allowed_values.include?(@state) return false end if @site.nil? return false end if @phone_base_settings.nil? return false end if @lines.nil? return false end end |