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 237
237:       def initialize(type, seq=nil, data_text='')
238:         unless [:data, :close].include? type
239:           raise "Unknown IBBQueueItem type: #{type}"
240:         end
241: 
242:         @type = type
243:         @seq = seq
244:         @data = data_text
245:       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 252
252:       def data
253:         Base64::decode64(@data)
254:       end

[Validate]