Sha256: 8c106d122bb69cd44d9b3a89241c6bf68978ce32177e26d17da799a23b70c591
Contents?: true
Size: 788 Bytes
Versions: 2
Compression:
Stored size: 788 Bytes
Contents
module SmsNotify # Represents an SMS message response (text reply) in the form # of a Ruby-like object. class MessageResponse attr_reader :response_id, :text_id, :status_code, :received_date, :message # 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') 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cdyne-sms-notify-0.10.0 | lib/sms_notify/message_response.rb |
cdyne-sms-notify-0.9.6 | lib/sms_notify/message_response.rb |