Sha256: 7f466903199d399e93bf411607c7868f3c478ce41b40082df17abb88cb83932e

Contents?: true

Size: 508 Bytes

Versions: 7

Compression:

Stored size: 508 Bytes

Contents

# The Message class's subclasses, each used for holding one line of a chat.

module Pidgin2Adium
  # A message saying e.g. "Blahblah has gone away."
  class StatusMessage < Message
    def initialize(sender, time, buddy_alias, status)
      super(sender, time, buddy_alias)
      @status = status
    end
    attr_accessor :status

    def to_s
      return sprintf('<status type="%s" sender="%s" time="%s" alias="%s"/>' << "\n",
                     @status, @sender, @time, @buddy_alias)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pidgin2adium-3.3.0 lib/pidgin2adium/messages/status_message.rb
pidgin2adium-3.2.4 lib/pidgin2adium/messages/status_message.rb
pidgin2adium-3.2.3 lib/pidgin2adium/messages/status_message.rb
pidgin2adium-3.2.2 lib/pidgin2adium/messages/status_message.rb
pidgin2adium-3.2.1 lib/pidgin2adium/messages/status_message.rb
pidgin2adium-3.2.0 lib/pidgin2adium/messages/status_message.rb
pidgin2adium-3.1.1 lib/pidgin2adium/messages/status_message.rb