Module: LogCabin::Modules::UrlXpath
- Defined in:
- lib/prospectus/modules/url_xpath.rb
Overview
Pull state from a GitHub tag
Instance Method Summary collapse
Instance Method Details
#load! ⇒ Object
12 13 14 15 16 17 |
# File 'lib/prospectus/modules/url_xpath.rb', line 12 def load! raise('No url provided') unless @url raise('No xpath provided') unless @xpath text = parse_page @state.value = regex_helper(text) end |