Sha256: fdc5153d3e9104374cabfb93656c077cc119005983bfaab08db693ab0d83c5cb

Contents?: true

Size: 559 Bytes

Versions: 1

Compression:

Stored size: 559 Bytes

Contents

module MerlinGateway

	class Client
		attr_accessor :username, :password, :access_number, :sender_number, :country

		def initialize(options)
			@username      = options[:username]
			@password      = options[:password]
			@access_number = options[:access_number] || '2210'
			@sender_number = options[:sender_number] || @access_number
			@country       = options[:country]       || 'NO'
		end
		
		def new_message(target_number, message, options={})
			::MerlinGateway::SmsMessage.new(target_number, message, options.merge({:client => self}))
		end
	end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
merlin_gateway-0.1.3 lib/merlin_gateway/client.rb