Class: Drom::Page
- Inherits:
-
Object
- Object
- Drom::Page
- Defined in:
- lib/drom/page.rb
Instance Attribute Summary collapse
-
#listings ⇒ Object
readonly
Returns the value of attribute listings.
-
#next_page ⇒ Object
readonly
Returns the value of attribute next_page.
Instance Method Summary collapse
-
#initialize(url, &block) ⇒ Page
constructor
A new instance of Page.
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
#listings ⇒ Object (readonly)
Returns the value of attribute listings.
3 4 5 |
# File 'lib/drom/page.rb', line 3 def listings @listings end |
#next_page ⇒ Object (readonly)
Returns the value of attribute next_page.
3 4 5 |
# File 'lib/drom/page.rb', line 3 def next_page @next_page end |