lib/tinder/room.rb
Class Room
has 37 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Room
attr_reader :id, :name
def initialize(connection, attributes = {})
@connection = connection
Method listen
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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