Sha256: a55230944d95d259bdeabad536f330cc37902ed1c70fad47fc9e5dd0804a392f

Contents?: true

Size: 201 Bytes

Versions: 2

Compression:

Stored size: 201 Bytes

Contents

require 'peddler/parsers/model'

module Peddler
  module Parsers
    class Counter < Model
      value :count do
        integer_at_xpath('Count')
      end

      alias :to_i :count
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-0.6.5 lib/peddler/parsers/counter.rb
peddler-0.6.4 lib/peddler/parsers/counter.rb