require 'sms_gear_api/version'
require 'net/http'
require 'digest/md5'

module SmsGearApi
  class Base
    attr_accessor :login, :passw
    def initialize(params = {})
      @login = params[:login]
      @passw = params[:passw]
    end

    def send_sms(params = {})
      true
    end

    private

    def pass_hash
      return @pass_hash if @pass_hash
      @pass_hash = Digest::MD5.hexdigest @pass
    end
  end
end

require 'sms_gear_api/version'
require 'net/http'
require 'digest/md5'

module SmsGearApi
  class Base
    attr_accessor :login, :passw
    def initialize(params = {})
      @login = params[:login]
      @passw = params[:passw]
    end

    def send_sms(params = {})
      true
    end

    private

    def md5_pass_hash
      return @pass_hash if @pass_hash
      @pass_hash = Digest::MD5.hexdigest @passw if @passw
    end

    def target_to_str(target)
      target.respond_to?(:join) ? target.join(', ') : target
    end
  end
end

Rename pass_hash to md5_pass_hash, modify md5_pass_hash, add target_to_str method.
Rename pass_hash to md5_pass_hash, modify md5_pass_hash, add target_to_str method.
