Sha256: 930302cbe447276ab36939b1318d58963e50844372b7f8f7def7a2b0bb6f2500

Contents?: true

Size: 469 Bytes

Versions: 10

Compression:

Stored size: 469 Bytes

Contents

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
    end # Offer
  end
end # Punchblock

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
punchblock-0.9.2 lib/punchblock/event/offer.rb
punchblock-0.9.1 lib/punchblock/event/offer.rb
punchblock-0.9.0 lib/punchblock/event/offer.rb
punchblock-0.8.4 lib/punchblock/event/offer.rb
punchblock-0.5.1 lib/punchblock/event/offer.rb
punchblock-0.5.0 lib/punchblock/event/offer.rb
punchblock-0.4.3 lib/punchblock/event/offer.rb
punchblock-0.4.2 lib/punchblock/event/offer.rb
punchblock-0.4.1 lib/punchblock/event/offer.rb
punchblock-0.4.0 lib/punchblock/event/offer.rb