Sha256: 2d94037a1b9f9033b6be59a884f1a7684cc9389ec0228d1d2ce63572fe462ef4

Contents?: true

Size: 243 Bytes

Versions: 7

Compression:

Stored size: 243 Bytes

Contents

class IdsPlease
  module Parsers
    class Reddit < IdsPlease::Parsers::Base

      MASK = /reddit/i

      class << self
        private

        def parse_link(link)
          link.path.split('/')[2]
        end
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ids_please-2.2.0 lib/ids_please/parsers/reddit.rb
ids_please-2.1.2 lib/ids_please/parsers/reddit.rb
ids_please-2.1.1 lib/ids_please/parsers/reddit.rb
ids_please-2.1.0 lib/ids_please/parsers/reddit.rb
ids_please-2.0.0.beta2 lib/ids_please/parsers/reddit.rb
ids_please-2.0.0.beta1 lib/ids_please/parsers/reddit.rb
ids_please-2.0.0.beta lib/ids_please/parsers/reddit.rb