lib/sms_notify/message_status.rb in cdyne-sms-notify-0.9.6 vs lib/sms_notify/message_status.rb in cdyne-sms-notify-0.10.0

- old
+ new

@@ -15,17 +15,17 @@ # :StatusCode => '6', # :StatusText => 'Completed', # :ReceivedDate => '2010-04-03T14:29:14.7', # :Responded => '0') def initialize(attrs) - @completed = attrs[:Completed] || nil - @demo = attrs[:demo] || nil - @scheduled_time = attrs[:ScheduledTime] || nil - @status_code = attrs[:StatusCode] || nil - @status_text = attrs[:StatusText] || nil - @text_id = attrs[:text_id] || nil - @received_date = attrs[:ReceivedDate] || nil - @responded = attrs[:Responded] || nil + @completed = attrs[:completed] || attrs[:Completed] || nil + @demo = attrs[:demo] || nil + @scheduled_time = attrs[:scheduled_time] || attrs[:ScheduledTime] || nil + @status_code = attrs[:status_code] || attrs[:StatusCode] || nil + @status_text = attrs[:status_text] || attrs[:StatusText] || nil + @text_id = attrs[:text_id] || attrs[:TextID] || nil + @received_date = attrs[:received_date] || attrs[:ReceivedDate] || nil + @responded = attrs[:responded] || attrs[:Responded] || nil end def fatal_error? FATAL_ERRORS.include?(self.status_code) end