lib/sms_notify/message_response.rb in cdyne-sms-notify-0.8.5 vs lib/sms_notify/message_response.rb in cdyne-sms-notify-0.9.6
- old
+ new
@@ -12,13 +12,13 @@
# :TextID => '123',
# :StatusCode => '6',
# :ReceivedDate => '2010-04-03T14:29:14.7',
# :Message => 'foo')
def initialize(attrs)
- @response_id = attrs[:ResponseID] || nil
- @text_id = attrs[:TextID] || nil
- @status_code = attrs[:StatusCode] || nil
- @received_date = attrs[:ReceivedDate] || nil
- @message = attrs[:Message] || nil
+ @response_id = attrs["ResponseID"] || nil
+ @text_id = attrs["TextID"] || nil
+ @status_code = attrs["StatusCode"] || nil
+ @received_date = attrs["ReceivedDate"] || nil
+ @message = attrs["Message"] || nil
end
end
-end
\ No newline at end of file
+end