Class: Punchblock::Event::Complete::Reason

Inherits:
RayoNode
  • Object
show all
Defined in:
lib/punchblock/event/complete.rb

Constant Summary

Constants inherited from RayoNode

RayoNode::InvalidNodeError

Instance Attribute Summary

Attributes inherited from RayoNode

#client, #component_id, #connection, #domain, #original_component, #target_call_id, #target_mixer_name

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RayoNode

class_from_registration, #eql?, import, #inspect, register, #source

Class Method Details

.new(options = {}) ⇒ Object



36
37
38
39
40
41
42
43
44
45
# File 'lib/punchblock/event/complete.rb', line 36

def self.new(options = {})
  super().tap do |new_node|
    case options
    when Nokogiri::XML::Node
      new_node.inherit options
    when Hash
      options.each_pair { |k,v| new_node.send :"#{k}=", v }
    end
  end
end

Instance Method Details

#inspect_attributesObject

:nodoc:



51
52
53
# File 'lib/punchblock/event/complete.rb', line 51

def inspect_attributes # :nodoc:
  [:name] + super
end

#nameObject



47
48
49
# File 'lib/punchblock/event/complete.rb', line 47

def name
  super.to_sym
end