Module: Google::Search::Filter
Instance Attribute Summary collapse
-
#filter ⇒ Object
Weither or not to filter duplicate results.
Instance Method Summary collapse
-
#get_uri_params ⇒ Object
:nodoc:.
-
#initialize(options = {}, &block) ⇒ Object
:nodoc:.
Instance Attribute Details
#filter ⇒ Object
Weither or not to filter duplicate results. Defaults to true.
10 11 12 |
# File 'lib/google-search/search/mixins/filter.rb', line 10 def filter @filter end |
Instance Method Details
#get_uri_params ⇒ Object
:nodoc:
21 22 23 |
# File 'lib/google-search/search/mixins/filter.rb', line 21 def get_uri_params super + [[:filter, filter ? 1 : 0]] end |
#initialize(options = {}, &block) ⇒ Object
:nodoc:
14 15 16 17 |
# File 'lib/google-search/search/mixins/filter.rb', line 14 def initialize = {}, &block @filter = .delete(:filter) || 1 super end |