Class: Esaj::QueryPage

Inherits:
Object
  • Object
show all
Defined in:
lib/esaj/query_page.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#urlObject (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_setObject



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