Sha256: 6c7b7ec81f4c72d4c9ee55f2341116c25d403149cd8484203e8b81e8b4eeb139

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

module RocketChat
  module Messages
    #
    # Room params builder for calls with room parameters
    #
    module RoomSupport
      def room_params(id, name)
        if id
          { roomId: id }
        elsif name
          { roomName: name }
        else
          {}
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rocketchat-0.1.21 lib/rocket_chat/messages/room_support.rb
rocketchat-0.1.20 lib/rocket_chat/messages/room_support.rb
rocketchat-0.1.19 lib/rocket_chat/messages/room_support.rb