Sha256: abc33715ff08a4c9fad3b32e8061d8fa2a9c6524e4a0f3a0b570f7f3bc54ded5

Contents?: true

Size: 314 Bytes

Versions: 6

Compression:

Stored size: 314 Bytes

Contents

module Punchblock
  class Event
    class Info < Event
      register :info, :core

      def event_name
        children.select { |c| c.is_a? Nokogiri::XML::Element }.first.name.to_sym
      end

      def inspect_attributes # :nodoc:
        [:event_name] + super
      end
    end # Info
  end
end # Punchblock

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
punchblock-0.5.1 lib/punchblock/event/info.rb
punchblock-0.5.0 lib/punchblock/event/info.rb
punchblock-0.4.3 lib/punchblock/event/info.rb
punchblock-0.4.2 lib/punchblock/event/info.rb
punchblock-0.4.1 lib/punchblock/event/info.rb
punchblock-0.4.0 lib/punchblock/event/info.rb