Class: Punchblock::Event::Offer

Inherits:
Punchblock::Event show all
Includes:
HasHeaders
Defined in:
lib/punchblock/event/offer.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

Instance Method Summary collapse

Methods included from HasHeaders

#headers, #headers=, #headers_hash

Methods inherited from Punchblock::Event

new

Methods inherited from RayoNode

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

Instance Method Details

#fromObject



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

#inspectObject



30
31
32
# File 'lib/punchblock/event/offer.rb', line 30

def inspect
  "#<Punchblock::Event::Offer to=\"#{to}\", from=\"#{from}\", headers=#{headers_hash.inspect}, call_id=\"#{target_call_id}\""
end

#inspect_attributesObject

:nodoc:



26
27
28
# File 'lib/punchblock/event/offer.rb', line 26

def inspect_attributes # :nodoc:
  [:to, :from] + super
end

#toObject



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