Class: Justiz::Scraper::Page::Td
- Inherits:
-
Object
- Object
- Justiz::Scraper::Page::Td
- Defined in:
- lib/justiz/scraper/courts.rb
Instance Attribute Summary collapse
-
#texts ⇒ Object
readonly
Returns the value of attribute texts.
Instance Method Summary collapse
-
#initialize(node) ⇒ Td
constructor
A new instance of Td.
Constructor Details
#initialize(node) ⇒ Td
96 97 98 99 |
# File 'lib/justiz/scraper/courts.rb', line 96 def initialize(node) nodes = node.children.to_a @texts = nodes.map { |n| n.text.strip }.find_all { |t| !blank?(t) } end |
Instance Attribute Details
#texts ⇒ Object (readonly)
Returns the value of attribute texts.
94 95 96 |
# File 'lib/justiz/scraper/courts.rb', line 94 def texts @texts end |