Method: Smsruby#get_conn

Defined in:
lib/smsruby.rb

#get_connObject

High level function to get all available connection. The result is a hash containing the number of the connection and an object of the Connection class. A code block can be passed to get_conn function and will be executed for each available connection found by the Connection Administrator



149
150
151
152
153
154
155
156
# File 'lib/smsruby.rb', line 149

def get_conn
  unless !@sender.adm.avlconn
    conn= @sender.adm.get_connections{ |pm|
      yield pm if block_given?
    }
  end
  return conn
end