Sha256: 1c3ce9a3384d9be39451f85ba7cc9147e124e3e5f82897b5e246e06b9fd70969

Contents?: true

Size: 441 Bytes

Versions: 5

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

module Twitch
  module Bot
    # This class stores the connection details for the client.
    class Connection
      attr_reader :nickname, :password, :hostname, :port

      def initialize(
        nickname:, password:, hostname: "irc.chat.twitch.tv", port: "6667"
      )
        @nickname = nickname
        @password = password
        @hostname = hostname
        @port = port
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
twitch-bot-2.1.1 lib/twitch/bot/connection.rb
twitch-bot-2.1.0 lib/twitch/bot/connection.rb
twitch-bot-2.0.1 lib/twitch/bot/connection.rb
twitch-bot-2.0.0 lib/twitch/bot/connection.rb
twitch-bot-1.0.0 lib/twitch/bot/connection.rb