Sha256: b92231f37bbf0f29b9fec4d1315a0fcf69267d2a5d5ca0fa93535e70e5f305dc

Contents?: true

Size: 325 Bytes

Versions: 13

Compression:

Stored size: 325 Bytes

Contents

module RocketChat
  module Messages
    #
    # User params builder for calls with user parameters
    #
    module UserSupport
      def user_params(id, username)
        if id
          { userId: id }
        elsif username
          { username: username }
        else
          {}
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rocketchat-0.1.18 lib/rocket_chat/messages/user_support.rb
rocketchat-0.1.17 lib/rocket_chat/messages/user_support.rb
rocketchat-0.1.16 lib/rocket_chat/messages/user_support.rb
rocketchat-0.1.15 lib/rocket_chat/messages/user_support.rb
rocketchat-0.1.14 lib/rocket_chat/messages/user_support.rb
rocketchat-0.1.13 lib/rocket_chat/messages/user_support.rb
rocketchat-0.1.12 lib/rocket_chat/messages/user_support.rb
rocketchat-0.1.11 lib/rocket_chat/messages/user_support.rb
rocketchat-0.1.10 lib/rocket_chat/messages/user_support.rb
rocketchat-0.1.9 lib/rocket_chat/messages/user_support.rb
rocketchat-0.1.8 lib/rocket_chat/messages/user_support.rb
rocketchat-0.1.7 lib/rocket_chat/messages/user_support.rb
rocketchat-0.1.6 lib/rocket_chat/messages/user_support.rb