Class Jabber::Bytestreams::IBBQueueItem
In: lib/xmpp4r/bytestreams/helper/ibb/base.rb
Parent: Object

Represents an item in the internal data queue

Methods

data   new  

Attributes

seq  [R] 
type  [R] 

Public Class methods

[Source]

     # File lib/xmpp4r/bytestreams/helper/ibb/base.rb, line 239
239:       def initialize(type, seq=nil, data_text='')
240:         unless [:data, :close].include? type
241:           raise "Unknown IBBQueueItem type: #{type}"
242:         end
243: 
244:         @type = type
245:         @seq = seq
246:         @data = data_text
247:       end

Public Instance methods

Return the Base64-decoded data

There‘s no need to catch Exceptions here, as none are thrown.

[Source]

     # File lib/xmpp4r/bytestreams/helper/ibb/base.rb, line 254
254:       def data
255:         Base64::decode64(@data)
256:       end

[Validate]