Method: Bandwidth::SmsMessageContent#list_invalid_properties

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

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/bandwidth-sdk/models/sms_message_content.rb', line 76

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 > 2048
    invalid_properties.push('invalid value for "text", the character length must be smaller than or equal to 2048.')
  end

  invalid_properties
end