lib/cm_sms/message.rb in cm-sms-0.2.1 vs lib/cm_sms/message.rb in cm-sms-0.2.2

- old
+ new

@@ -39,13 +39,17 @@ def sender_present? !from.nil? && !from.empty? end + def sender_length? + sender_present? && from.length <= 11 + end + def body_present? !body.nil? && !body.empty? end - + def body_correct_length? body_present? && body.length <= 160 end def product_token_present? \ No newline at end of file