class SmsService::Result::Bulksms

Attributes

batch_id[R]
status_code[R]
status_description[R]

Public Class Methods

fetch_response(str) click to toggle source
# File lib/sms_service/results/bulksms.rb, line 11
def self.fetch_response str
 new str.split('|')
end
new(response) click to toggle source
# File lib/sms_service/results/bulksms.rb, line 6
def initialize response
  @response=response.inspect
  @status_code,@status_description,@batch_id=response.shift,response.shift,response.shift
end

Public Instance Methods

response() click to toggle source
# File lib/sms_service/results/bulksms.rb, line 15
def response
 @response    
end