Method: PureCloud::TrunkBase#valid?
- Defined in:
- lib/purecloudplatformclientv2/models/trunk_base.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 |
# File 'lib/purecloudplatformclientv2/models/trunk_base.rb', line 190 def valid? if @name.nil? return false end allowed_values = ["active", "inactive", "deleted"] if @state && !allowed_values.include?(@state) return false end if .nil? return false end if @trunk_type.nil? return false end allowed_values = ["EXTERNAL", "PHONE", "EDGE"] if @trunk_type && !allowed_values.include?(@trunk_type) return false end end |