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.0.1 lib/punchblock/event/end.rb
punchblock-2.0.0 lib/punchblock/event/end.rb
punchblock-2.0.0.beta2 lib/punchblock/event/end.rb
punchblock-2.0.0.beta1 lib/punchblock/event/end.rb