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 240
240:       def initialize(type, seq=nil, data_text='')
241:         unless [:data, :close].include? type
242:           raise "Unknown IBBQueueItem type: #{type}"
243:         end
244: 
245:         @type = type
246:         @seq = seq
247:         @data = data_text
248:       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 255
255:       def data
256:         Base64::decode64(@data)
257:       end

[Validate]