Sha256: 3f39191ff4a71719abbeca4f6931dfaefd2245cd345a27ad6cf2dfc6656c0b05

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

module Journeta

   # A built-in data structure which gets broadcast across the network
   # for meta-data exchange purposes. A no-frills PORO.
   class PresenceMessage

      attr_accessor :version
      attr_accessor :uuid
      attr_accessor :peer_port

      # An Array of strings. May be empty but not nil. Ex: ['quick_chat', 'Preston Demo 1']
      attr_accessor :groups

      def initialize(uuid, peer_port, groups = [])
         @version = Journeta::VERSION
         @uuid = uuid
         @peer_port = peer_port
         @groups = groups
      end

   end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
journeta-1.1.0 lib/journeta/presence_message.rb