Sha256: febe8556666d86a834360ab1b92de18a501350089be4c69e4ae6a476406a31ff

Contents?: true

Size: 430 Bytes

Versions: 24

Compression:

Stored size: 430 Bytes

Contents

# encoding: utf-8

module Punchblock
  class Event
    class End < Event
      register :end, :core

      include HasHeaders

      attribute :reason, Symbol
      attribute :platform_code, String

      def inherit(xml_node)
        if reason_node = xml_node.at_xpath('*')
          self.reason = reason_node.name
          self.platform_code = reason_node['platform-code']
        end
        super
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
punchblock-2.7.5 lib/punchblock/event/end.rb
punchblock-2.7.3 lib/punchblock/event/end.rb
punchblock-2.7.2 lib/punchblock/event/end.rb
punchblock-2.7.1 lib/punchblock/event/end.rb
punchblock-2.7.0 lib/punchblock/event/end.rb
punchblock-2.6.0 lib/punchblock/event/end.rb
punchblock-2.5.3 lib/punchblock/event/end.rb
punchblock-2.5.2 lib/punchblock/event/end.rb
punchblock-2.5.1 lib/punchblock/event/end.rb
punchblock-2.5.0 lib/punchblock/event/end.rb
punchblock-2.4.2 lib/punchblock/event/end.rb
punchblock-2.4.0 lib/punchblock/event/end.rb
punchblock-2.3.1 lib/punchblock/event/end.rb
punchblock-2.3.0 lib/punchblock/event/end.rb
punchblock-2.2.2 lib/punchblock/event/end.rb
punchblock-2.2.1 lib/punchblock/event/end.rb
punchblock-2.2.0 lib/punchblock/event/end.rb
punchblock-2.1.1 lib/punchblock/event/end.rb
punchblock-2.1.0 lib/punchblock/event/end.rb
punchblock-2.0.2 lib/punchblock/event/end.rb