Class: NationalRail::VirginLiveDepartureBoards::NokogiriParser
- Inherits:
-
Mechanize::Page
- Object
- Mechanize::Page
- NationalRail::VirginLiveDepartureBoards::NokogiriParser
- Defined in:
- lib/national-rail/virgin_live_departure_boards.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(uri = nil, response = nil, body = nil, code = nil) ⇒ NokogiriParser
constructor
A new instance of NokogiriParser.
Constructor Details
#initialize(uri = nil, response = nil, body = nil, code = nil) ⇒ NokogiriParser
Returns a new instance of NokogiriParser.
80 81 82 83 |
# File 'lib/national-rail/virgin_live_departure_boards.rb', line 80 def initialize(uri = nil, response = nil, body = nil, code = nil) @doc = Nokogiri(TidyFFI::Tidy.new(body).clean) super(uri, response, body, code) end |
Instance Attribute Details
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
79 80 81 |
# File 'lib/national-rail/virgin_live_departure_boards.rb', line 79 def doc @doc end |