Class: Drom::ListingParser
- Inherits:
-
Object
- Object
- Drom::ListingParser
- Defined in:
- lib/drom/listing_parser.rb
Instance Attribute Summary collapse
-
#parsed ⇒ Object
readonly
Returns the value of attribute parsed.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, page) ⇒ ListingParser
constructor
A new instance of ListingParser.
Constructor Details
#initialize(url, page) ⇒ ListingParser
Returns a new instance of ListingParser.
5 6 7 8 9 10 |
# File 'lib/drom/listing_parser.rb', line 5 def initialize(url, page) @url = url @page = page @parsed = {} parse_sections end |
Instance Attribute Details
#parsed ⇒ Object (readonly)
Returns the value of attribute parsed.
3 4 5 |
# File 'lib/drom/listing_parser.rb', line 3 def parsed @parsed end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/drom/listing_parser.rb', line 3 def url @url end |