Sha256: d7e904d71bd6b06d21788e2f5f796432f240b9935d478fa75709012d32ed8eac

Contents?: true

Size: 379 Bytes

Versions: 11

Compression:

Stored size: 379 Bytes

Contents

require "socrates/configuration"

module Socrates
  module Core
    class Session
      attr_accessor :client_id, :user, :channel, :messages

      def initialize(client_id: nil, user: nil, channel: nil)
        @client_id = client_id
        @user      = user
        @channel   = channel
        @messages  = Hash.new { |hash, key| hash[key] = [] }
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
socrates-0.1.26 lib/socrates/core/session.rb
socrates-0.1.25 lib/socrates/core/session.rb
socrates-0.1.24 lib/socrates/core/session.rb
socrates-0.1.23 lib/socrates/core/session.rb
socrates-0.1.22 lib/socrates/core/session.rb
socrates-0.1.21 lib/socrates/core/session.rb
socrates-0.1.20 lib/socrates/core/session.rb
socrates-0.1.19 lib/socrates/core/session.rb
socrates-0.1.18 lib/socrates/core/session.rb
socrates-0.1.17 lib/socrates/core/session.rb
socrates-0.1.16 lib/socrates/core/session.rb