Sha256: 8536b68ea406c45c851cc1414b0d23c787ccf3936333ed2dbb38ae64a5b46d79

Contents?: true

Size: 208 Bytes

Versions: 7

Compression:

Stored size: 208 Bytes

Contents

module RubyHackernews

  class TextParser

    def initialize(table)
      @target_line = table.search("tr")[3]
    end

    def parse
      return @target_line.search("td")[1].inner_text
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby-hackernews-1.4.0 lib/ruby-hackernews/services/parsers/text_parser.rb
ruby-hackernews-1.3.7 lib/ruby-hackernews/services/parsers/text_parser.rb
ruby-hackernews-1.3.6 lib/ruby-hackernews/services/parsers/text_parser.rb
ruby-hackernews-1.3.5 lib/ruby-hackernews/services/parsers/text_parser.rb
ruby-hackernews-1.3.3 lib/ruby-hackernews/services/parsers/text_parser.rb
ruby-hackernews-1.3.2 lib/ruby-hackernews/services/parsers/text_parser.rb
ruby-hackernews-1.3.1 lib/ruby-hackernews/services/parsers/text_parser.rb