Class: Justiz::Scraper::Page::KontaktTd
- Defined in:
- lib/justiz/scraper/courts.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Attributes inherited from Td
Instance Method Summary collapse
- #email ⇒ Object
- #fax ⇒ Object
-
#initialize(node) ⇒ KontaktTd
constructor
A new instance of KontaktTd.
- #justiz_id ⇒ Object
- #telefone ⇒ Object
Constructor Details
#initialize(node) ⇒ KontaktTd
Returns a new instance of KontaktTd.
134 135 136 137 138 139 |
# File 'lib/justiz/scraper/courts.rb', line 134 def initialize(node) super if (a = node.search('a').first) @url = a['href'] end end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
132 133 134 |
# File 'lib/justiz/scraper/courts.rb', line 132 def url @url end |
Instance Method Details
#email ⇒ Object
153 154 155 |
# File 'lib/justiz/scraper/courts.rb', line 153 def email next_line('Mail') end |
#fax ⇒ Object
145 146 147 |
# File 'lib/justiz/scraper/courts.rb', line 145 def fax same_line('Fax:') end |
#justiz_id ⇒ Object
149 150 151 |
# File 'lib/justiz/scraper/courts.rb', line 149 def justiz_id same_line('XJustiz-ID:') end |
#telefone ⇒ Object
141 142 143 |
# File 'lib/justiz/scraper/courts.rb', line 141 def telefone same_line('Telefon:') end |