lib/sms_notify/message_response.rb in cdyne-sms-notify-0.10.0 vs lib/sms_notify/message_response.rb in cdyne-sms-notify-0.10.1
- old
+ new
@@ -6,19 +6,19 @@
# Create a new instance of a #MessageResponse
#
# == Example
# SmsNotify::MessageResponse.new(
- # :ResponseID => '1',
- # :TextID => '123',
- # :StatusCode => '6',
- # :ReceivedDate => '2010-04-03T14:29:14.7',
- # :Message => 'foo')
+ # "ResponseID" => '1',
+ # "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
+ @response_id = attrs["ResponseID"] || nil
+ @text_id = attrs["TextID"] || nil
+ @status_code = attrs["StatusCode"] || nil
@received_date = attrs["ReceivedDate"] || nil
- @message = attrs["Message"] || nil
+ @message = attrs["Message"] || nil
end
end
end