Method: Bandwidth::SmsMessageContent#valid?

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

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



92
93
94
95
96
97
# File 'lib/bandwidth-sdk/models/sms_message_content.rb', line 92

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  return false if @text.nil?
  return false if @text.to_s.length > 2048
  true
end