class Jabber::Bytestreams::IBBQueueItem
Represents an item in the internal data queue
Attributes
seq[R]
type[R]
Public Class Methods
new(type, seq=nil, data_text='')
click to toggle source
# File lib/xmpp4r/bytestreams/helper/ibb/base.rb, line 237 def initialize(type, seq=nil, data_text='') unless [:data, :close].include? type raise "Unknown IBBQueueItem type: #{type}" end @type = type @seq = seq @data = data_text end
Public Instance Methods
data()
click to toggle source
Return the Base64-decoded data
There's no need to catch Exceptions here, as none are thrown.
# File lib/xmpp4r/bytestreams/helper/ibb/base.rb, line 252 def data Base64::decode64(@data) end