Class: NationalRail::VirginLiveDepartureBoards::NokogiriParser

Inherits:
Mechanize::Page
  • Object
show all
Defined in:
lib/national-rail/virgin_live_departure_boards.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#docObject (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