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

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

Direct Known Subclasses

Component::Asterisk::AGI::Command::Complete::Success, Component::Asterisk::AMI::Action::Complete::Success, Component::Input::Complete::NoInput, Component::Input::Complete::NoMatch, Component::Input::Complete::Success, Component::Output::Complete::Success, Component::Record::Complete::Success, Error, Hangup, Stop

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

+ (Object) new(options = {})



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

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

- (Object) inspect_attributes

:nodoc:



57
58
59
# File 'lib/punchblock/event/complete.rb', line 57

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

- (Object) name



53
54
55
# File 'lib/punchblock/event/complete.rb', line 53

def name
  super.to_sym
end