Class: MockListener

Inherits:
Object
  • Object
show all
Defined in:
lib/vendor/xmpp4r/test/tc_streamparser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#receivedObject (readonly)

Returns the value of attribute received.



13
14
15
# File 'lib/vendor/xmpp4r/test/tc_streamparser.rb', line 13

def received
  @received
end

Instance Method Details

#parse_failure(exception) ⇒ Object



19
20
21
# File 'lib/vendor/xmpp4r/test/tc_streamparser.rb', line 19

def parse_failure(exception)
  raise exception
end

#receive(element) ⇒ Object



15
16
17
# File 'lib/vendor/xmpp4r/test/tc_streamparser.rb', line 15

def receive(element)
  @received = element
end