Class: Xap::Schema::XapBscQuery
- Inherits:
-
XapBscMessage
- Object
- XapMessage
- XapUnsupportedMessage
- XapBscMessage
- Xap::Schema::XapBscQuery
- 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
-
#initialize(src_addr, src_uid, target_addr, *args) ⇒ XapBscQuery
constructor
Initializes an xAP BSC query message with the given source address and UID and target address.
Methods inherited from XapBscMessage
Methods inherited from XapUnsupportedMessage
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 |