Method: Bandwidth::RbmMessageContentText#list_invalid_properties

Defined in:
lib/bandwidth-sdk/models/rbm_message_content_text.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/bandwidth-sdk/models/rbm_message_content_text.rb', line 87

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  if @text.nil?
    invalid_properties.push('invalid value for "text", text cannot be nil.')
  end

  if @text.to_s.length > 3270
    invalid_properties.push('invalid value for "text", the character length must be smaller than or equal to 3270.')
  end

  if !@suggestions.nil? && @suggestions.length > 11
    invalid_properties.push('invalid value for "suggestions", number of items must be less than or equal to 11.')
  end

  invalid_properties
end