Class: Punchblock::Event::Offer

Inherits:
Punchblock::Event show all
Includes:
HasHeaders
Defined in:
lib/punchblock/event/offer.rb

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

- (Object) from



18
19
20
# File 'lib/punchblock/event/offer.rb', line 18

def from
  read_attr :from
end

- (Object) from=(offer_from)



22
23
24
# File 'lib/punchblock/event/offer.rb', line 22

def from=(offer_from)
  write_attr :from, offer_from
end

- (Object) inspect



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

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

- (Object) inspect_attributes

:nodoc:



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

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

- (Object) to



10
11
12
# File 'lib/punchblock/event/offer.rb', line 10

def to
  read_attr :to
end

- (Object) to=(offer_to)



14
15
16
# File 'lib/punchblock/event/offer.rb', line 14

def to=(offer_to)
  write_attr :to, offer_to
end