Class: Zusaar::SearchResults

Inherits:
Base
  • Object
show all
Defined in:
lib/zusaar/search_results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

attr_reader

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_returnedObject (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_startObject (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

#eventsObject



16
17
18
# File 'lib/zusaar/search_results.rb', line 16

def events
  @events
end