Class: Drom::Page

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, &block) ⇒ Page



5
6
7
8
9
10
11
12
# File 'lib/drom/page.rb', line 5

def initialize(url, &block)
  @client = Client.new
  @page_url = url
  @urls = []
  @listings = []
  @next_page = nil
  page_listings(&block)
end

Instance Attribute Details

#listingsObject (readonly)

Returns the value of attribute listings.



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

def listings
  @listings
end

#next_pageObject (readonly)

Returns the value of attribute next_page.



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

def next_page
  @next_page
end