Class: MockListener

Inherits:
Object show all
Defined in:
lib/gems/xmpp4r-0.4/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/gems/xmpp4r-0.4/test/tc_streamparser.rb', line 13

def received
  @received
end

Instance Method Details

#parse_failure(exception) ⇒ Object



19
20
21
# File 'lib/gems/xmpp4r-0.4/test/tc_streamparser.rb', line 19

def parse_failure(exception)
  raise exception
end

#receive(element) ⇒ Object



15
16
17
# File 'lib/gems/xmpp4r-0.4/test/tc_streamparser.rb', line 15

def receive(element)
  @received = element
end