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

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

Instance Attribute Summary

Attributes inherited from RayoNode

#call_id, #client, #component_id, #connection, #domain, #mixer_name, #original_component

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



40
41
42
43
44
45
46
47
48
49
# File 'lib/punchblock/event/complete.rb', line 40

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:



55
56
57
# File 'lib/punchblock/event/complete.rb', line 55

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

#nameObject



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

def name
  super.to_sym
end