Class: Justiz::Scraper::Page::Td

Inherits:
Object
  • Object
show all
Defined in:
lib/justiz/scraper/courts.rb

Direct Known Subclasses

AddressTd, KontaktTd

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textsObject (readonly)

Returns the value of attribute texts.



94
95
96
# File 'lib/justiz/scraper/courts.rb', line 94

def texts
  @texts
end