Class: Punchblock::Event::End
- Inherits:
-
Punchblock::Event
- Object
- Niceogiri::XML::Node
- RayoNode
- Punchblock::Event
- Punchblock::Event::End
- Includes:
- HasHeaders
- Defined in:
- lib/punchblock/event/end.rb
Instance Attribute Summary
Attributes inherited from RayoNode
#call_id, #client, #component_id, #connection, #domain, #mixer_name, #original_component
Instance Method Summary collapse
Methods included from HasHeaders
#headers, #headers=, #headers_hash
Methods inherited from Punchblock::Event
Methods inherited from RayoNode
class_from_registration, #eql?, import, #inspect, new, register, #source
Instance Method Details
#inspect_attributes ⇒ Object
:nodoc:
16 17 18 |
# File 'lib/punchblock/event/end.rb', line 16 def inspect_attributes # :nodoc: [:reason] + super end |
#reason ⇒ Object
8 9 10 |
# File 'lib/punchblock/event/end.rb', line 8 def reason children.select { |c| c.is_a? Nokogiri::XML::Element }.first.name.to_sym end |
#reason=(other) ⇒ Object
12 13 14 |
# File 'lib/punchblock/event/end.rb', line 12 def reason=(other) self << Nokogiri::XML::Element.new(other.to_s, self.document) end |