Class: Punchblock::Event::Offer
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
Instance Method Summary
collapse
Methods included from HasHeaders
#headers, #headers=, #headers_hash
new
Methods inherited from RayoNode
class_from_registration, #eql?, import, new, register, #source
Instance Method Details
18
19
20
|
# File 'lib/punchblock/event/offer.rb', line 18
def from
read_attr :from
end
|
#from=(offer_from) ⇒ Object
22
23
24
|
# File 'lib/punchblock/event/offer.rb', line 22
def from=(offer_from)
write_attr :from, offer_from
end
|
30
31
32
|
# File 'lib/punchblock/event/offer.rb', line 30
def inspect
"#<Punchblock::Event::Offer to=\"#{to}\", from=\"#{from}\", headers=#{.inspect}, call_id=\"#{target_call_id}\""
end
|
#inspect_attributes ⇒ Object
26
27
28
|
# File 'lib/punchblock/event/offer.rb', line 26
def inspect_attributes [:to, :from] + super
end
|
10
11
12
|
# File 'lib/punchblock/event/offer.rb', line 10
def to
read_attr :to
end
|
#to=(offer_to) ⇒ Object
14
15
16
|
# File 'lib/punchblock/event/offer.rb', line 14
def to=(offer_to)
write_attr :to, offer_to
end
|