Sha256: 5c1a9dc70a7716861a9bbc28359811bcdeea406231e9b2d4b526ee6bf035af85

Contents?: true

Size: 313 Bytes

Versions: 7

Compression:

Stored size: 313 Bytes

Contents

class Uppercut
  class Message
    attr_accessor :to, :message

    def initialize(base) #:nodoc:
      @base = base
    end

    # Send a blob of text.
    def send(body=nil)
      msg = Jabber::Message.new(@to)
      msg.type = :chat
      msg.body = body || @message
      @base.stanza(msg)
    end
  end
end

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
tyler-uppercut-0.5.0 lib/uppercut/message.rb
tyler-uppercut-0.6.2 lib/uppercut/message.rb
tyler-uppercut-0.7.0 lib/uppercut/message.rb
tyler-uppercut-0.7.1 lib/uppercut/message.rb
vasil-uppercut-0.7.1 lib/uppercut/message.rb
mrw-uppercut-0.0.1.pre1 lib/uppercut/message.rb
uppercut-0.7.1 lib/uppercut/message.rb