Class: Esaj::QueryPage
- Inherits:
-
Object
- Object
- Esaj::QueryPage
- Defined in:
- lib/esaj/query_page.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ QueryPage
constructor
A new instance of QueryPage.
- #result_set ⇒ Object
Constructor Details
#initialize(url) ⇒ QueryPage
Returns a new instance of QueryPage.
7 8 9 |
# File 'lib/esaj/query_page.rb', line 7 def initialize(url) @url = url end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/esaj/query_page.rb', line 5 def url @url end |
Instance Method Details
#result_set ⇒ Object
11 12 13 14 15 |
# File 'lib/esaj/query_page.rb', line 11 def result_set result_elements.each_with_object([]) do |result_element, result_set| result_set << result_item_for(result_element) end end |