def method_missing(method, *args)
      if method.to_s.match /subscription/
        if args.size == 2
          @subscriptions.send method, args[0], args[1]
        else
          @subscriptions.send method, args[0]
        end
      else
        if method == :delivery_status || method == :retrieve_sms || method == :search_sms
          @reporting.send method, args[0]
        else
          raise RuntimeError, 'Unknown method'
        end
      end
    end
def method_missing(method, *args)
      if method.to_s.match /subscription/
        if args.size == 2
          @subscriptions.send method, args[0], args[1]
        else
          @subscriptions.send method, args[0]
        end
      else
        if method == :delivery_status || method == :retrieve_sms || method == :search_sms
          @reporting.send method, args[0]
        else
          raise RuntimeError, 'Unknown method'
        end
      end
    end
def method_missing ( method , * args ) if method . to_s . match / / if args . size == 2 @subscriptions . send method , args [ 0 ] , args [ 1 ] else @subscriptions . send method , args [ 0 ] end else if method == :delivery_status || method == :retrieve_sms || method == :search_sms @reporting . send method , args [ 0 ] else raise RuntimeError , 'Unknown method' end end end
Dispatches method calls to other objects for subscriptions and reporting
Dispatches method calls to other objects for subscriptions and reporting