Sha256: c32a039f3afc073d6ded4c8cb81206ddba1a7dd5cb3929b7180e7916c1747e84

Contents?: true

Size: 649 Bytes

Versions: 18

Compression:

Stored size: 649 Bytes

Contents

# encoding: utf-8

module Punchblock
  class Event
    class Offer < Event
      register :offer, :core

      include HasHeaders

      def to
        read_attr :to
      end

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

      def from
        read_attr :from
      end

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

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
punchblock-1.9.4 lib/punchblock/event/offer.rb
punchblock-1.9.3 lib/punchblock/event/offer.rb
punchblock-1.9.2 lib/punchblock/event/offer.rb
punchblock-1.9.1 lib/punchblock/event/offer.rb
punchblock-1.9.0 lib/punchblock/event/offer.rb
punchblock-1.8.2 lib/punchblock/event/offer.rb
punchblock-1.8.1 lib/punchblock/event/offer.rb
punchblock-1.8.0 lib/punchblock/event/offer.rb
punchblock-1.7.1 lib/punchblock/event/offer.rb
punchblock-1.7.0 lib/punchblock/event/offer.rb
punchblock-1.6.1 lib/punchblock/event/offer.rb
punchblock-1.6.0 lib/punchblock/event/offer.rb
punchblock-1.5.3 lib/punchblock/event/offer.rb
punchblock-1.5.2 lib/punchblock/event/offer.rb
punchblock-1.5.1 lib/punchblock/event/offer.rb
punchblock-1.5.0 lib/punchblock/event/offer.rb
punchblock-1.4.1 lib/punchblock/event/offer.rb
punchblock-1.4.0 lib/punchblock/event/offer.rb