Sha256: 3d4e255ed4d252eda49c16dd2cd3eab0af77c6b4c0dc8531c018e106001378a9

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

module IndeedJobsearch
  class SearchResultNode
    def initialize(node)
      @node = node
    end

    def text(selector)
      @node.search(selector).text.strip
    end

    def url
      selector = '[data-tn-element=jobTitle]'
      @node.search(selector).first.attribute('href').value
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
indeed_jobsearch-0.1.1 lib/indeed_jobsearch/search_result_node.rb
indeed_jobsearch-0.1.0 lib/indeed_jobsearch/search_result_node.rb