Class: Punchblock::Component::Asterisk::AGI::Command::Param
Constant Summary
Constants inherited from RayoNode
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
-
#inspect_attributes ⇒ Object
:nodoc:.
-
#value ⇒ String
The Header’s value.
-
#value=(value) ⇒ Object
Set the Header’s value.
Methods inherited from RayoNode
class_from_registration, #eql?, import, #inspect, register, #source
Class Method Details
.new(value) ⇒ Object
57 58 59 60 61 62 63 64 65 66 |
# File 'lib/punchblock/component/asterisk/agi/command.rb', line 57 def self.new(value) super(:param).tap do |new_node| case value when Nokogiri::XML::Node new_node.inherit value else new_node.value = value end end end |
Instance Method Details
#inspect_attributes ⇒ Object
:nodoc:
80 81 82 |
# File 'lib/punchblock/component/asterisk/agi/command.rb', line 80 def inspect_attributes # :nodoc: [:value] + super end |
#value ⇒ String
The Header’s value
70 71 72 |
# File 'lib/punchblock/component/asterisk/agi/command.rb', line 70 def value read_attr :value end |
#value=(value) ⇒ Object
Set the Header’s value
76 77 78 |
# File 'lib/punchblock/component/asterisk/agi/command.rb', line 76 def value=(value) write_attr :value, value end |