collectiveidea/tinder

View on GitHub
lib/tinder/room.rb

Summary

Maintainability
B
6 hrs
Test Coverage

Class Room has 37 methods (exceeds 20 allowed). Consider refactoring.
Open

  class Room
    attr_reader :id, :name

    def initialize(connection, attributes = {})
      @connection = connection
Severity: Minor
Found in lib/tinder/room.rb - About 4 hrs to fix

    Method listen has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def listen(options = {})
          raise ArgumentError, "no block provided" unless block_given?
    
          Tinder.logger.info "Joining #{@name}…"
          join # you have to be in the room to listen
    Severity: Minor
    Found in lib/tinder/room.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status