emilianodellacasa/ruby-asterisk

View on GitHub
lib/ruby-asterisk.rb

Summary

Maintainability
C
1 day
Test Coverage

Class AMI has 46 methods (exceeds 20 allowed). Consider refactoring.
Open

  class AMI
    attr_accessor :host, :port, :connected, :timeout, :wait_time

    def initialize(host, port)
      self.host = host.to_s
Severity: Minor
Found in lib/ruby-asterisk.rb - About 6 hrs to fix

    Method originate has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def originate(channel, context, callee, priority, variable = nil, caller_id = nil, timeout = 30000, async = nil)
    Severity: Major
    Found in lib/ruby-asterisk.rb - About 1 hr to fix

      Method redirect has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def redirect(channel, context, callee, priority, variable=nil, caller_id = nil, timeout = 30000)
      Severity: Major
      Found in lib/ruby-asterisk.rb - About 50 mins to fix

        Method queue_add has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def queue_add(queue, exten, penalty = 2, paused = false, member_name = '')
        Severity: Minor
        Found in lib/ruby-asterisk.rb - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status