Class: Vines::Stream::Client::Ready

Inherits:
State
  • Object
show all
Defined in:
lib/vines/stream/client/ready.rb

Direct Known Subclasses

Http::Ready

Constant Summary

Constants inherited from State

State::BODY, State::STREAM

Instance Attribute Summary

Attributes inherited from State

#stream

Instance Method Summary collapse

Methods inherited from State

#==, #eql?, #hash, #initialize

Methods included from Log

#log

Constructor Details

This class inherits a constructor from Vines::Stream::State

Instance Method Details

#node(node) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/vines/stream/client/ready.rb', line 7

def node(node)
  stanza = to_stanza(node)
  raise StreamErrors::UnsupportedStanzaType unless stanza
  stanza.validate_to
  stanza.validate_from
  stanza.process
end