Class: Drom::ListingParser

Inherits:
Object
  • Object
show all
Defined in:
lib/drom/listing_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#parsedObject (readonly)

Returns the value of attribute parsed.



3
4
5
# File 'lib/drom/listing_parser.rb', line 3

def parsed
  @parsed
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/drom/listing_parser.rb', line 3

def url
  @url
end