Class: Zusaar::SearchResults
Instance Attribute Summary collapse
-
#results_returned ⇒ Object
readonly
Returns the value of attribute results_returned.
-
#results_start ⇒ Object
readonly
Returns the value of attribute results_start.
Instance Method Summary collapse
- #events ⇒ Object
-
#initialize(attrs = {}) ⇒ SearchResults
constructor
A new instance of SearchResults.
Methods inherited from Base
Constructor Details
#initialize(attrs = {}) ⇒ SearchResults
Returns a new instance of SearchResults.
8 9 10 11 12 13 14 |
# File 'lib/zusaar/search_results.rb', line 8 def initialize(attrs = {}) @events = attrs['event'].map { |event| Zusaar::Event.new(event) } super(attrs) end |
Instance Attribute Details
#results_returned ⇒ Object (readonly)
Returns the value of attribute results_returned.
6 7 8 |
# File 'lib/zusaar/search_results.rb', line 6 def results_returned @results_returned end |
#results_start ⇒ Object (readonly)
Returns the value of attribute results_start.
6 7 8 |
# File 'lib/zusaar/search_results.rb', line 6 def results_start @results_start end |
Instance Method Details
#events ⇒ Object
16 17 18 |
# File 'lib/zusaar/search_results.rb', line 16 def events @events end |