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

#call_id, #client, #component_id, #connection, #original_component

Instance Method Summary collapse

Methods included from HasHeaders

#headers, #headers=, #headers_hash

Methods inherited from RayoNode

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

Instance Method Details

#fromObject



16
17
18
# File 'lib/punchblock/event/offer.rb', line 16

def from
  read_attr :from
end

#from=(offer_from) ⇒ Object



20
21
22
# File 'lib/punchblock/event/offer.rb', line 20

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

#inspect_attributesObject

:nodoc:



24
25
26
# File 'lib/punchblock/event/offer.rb', line 24

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

#toObject



8
9
10
# File 'lib/punchblock/event/offer.rb', line 8

def to
  read_attr :to
end

#to=(offer_to) ⇒ Object



12
13
14
# File 'lib/punchblock/event/offer.rb', line 12

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