Class: Xap::Schema::XapBscQuery

Inherits:
XapBscMessage show all
Defined in:
lib/xap/schema/xap_bsc.rb

Instance Attribute Summary

Attributes inherited from XapMessage

#headername, #hop, #msgclass, #src_addr, #target_addr, #uid, #version

Instance Method Summary collapse

Methods inherited from XapBscMessage

#each_block, #inspect, parse

Methods inherited from XapUnsupportedMessage

parse

Methods inherited from XapMessage

parse, register_class, #to_s, #uid_endpoint

Constructor Details

#initialize(src_addr, src_uid, target_addr, *args) ⇒ XapBscQuery

Initializes an xAP BSC query message with the given source address and UID and target address. Any subsequent arguments are ignored.



301
302
303
304
305
306
307
308
309
# File 'lib/xap/schema/xap_bsc.rb', line 301

def initialize src_addr, src_uid, target_addr, *args
	if src_addr.is_a?(Hash)
		super src_addr, src_uid, nil, nil, nil
	else
		super 'xAPBSC.query', src_addr, src_uid, target_addr
		@blocks['request'] = {}
	end
	raise 'All xAP BSC query messages must have a target address.' if @target_addr.nil?
end