Sha256: 27baf070b540172a2030ef3d60a150e8b4abb69c1688201522151187ec78b78c

Contents?: true

Size: 616 Bytes

Versions: 5

Compression:

Stored size: 616 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}\", call_id=\"#{target_call_id}\""
      end
    end # Offer
  end
end # Punchblock

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
punchblock-1.3.0 lib/punchblock/event/offer.rb
punchblock-1.2.0 lib/punchblock/event/offer.rb
punchblock-1.1.0 lib/punchblock/event/offer.rb
punchblock-1.0.0 lib/punchblock/event/offer.rb
punchblock-0.12.0 lib/punchblock/event/offer.rb