Class: RMD::NCT::Getter::KeyFromPage
- Defined in:
- lib/rmd/nct/getter/key_from_page.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from RMD::NCT::Getter::Base
Instance Method Details
#fetch ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/rmd/nct/getter/key_from_page.rb', line 8 def fetch if key && element @data_link = element.text.strip else @errors = "The page does not contain the key." end end |