Class: Tweetkit::Search
- Inherits:
-
Object
- Object
- Tweetkit::Search
- Includes:
- Conjunctions
- Defined in:
- lib/tweetkit/client/search/search.rb
Instance Attribute Summary collapse
-
#current_query ⇒ Object
Returns the value of attribute current_query.
Instance Method Summary collapse
- #evaluate(&block) ⇒ Object
-
#initialize(term) ⇒ Search
constructor
A new instance of Search.
- #opts ⇒ Object
Methods included from Conjunctions
#append_to_current_query, #are_not_retweets_of, #combine_terms, #contains, #contains_one, #contains_one_of, #context, #conversation_id, #conversation_ids, #countries, #country, #does_not_contain, #does_not_have, #entities, #entity, #from, #from_countries, #from_country, #from_location, #from_locations, #from_one, #from_one_of, #from_one_of_countries, #from_one_of_country, #from_one_of_location, #from_one_of_locations, #from_one_of_place, #from_one_of_places, #from_place, #from_places, #group, #group_terms, #has, #has_no, #has_one, #has_one_of, #is, #is_a, #is_not, #is_not_from, #is_not_to, #is_one_of, #join, #join_with_negated_operator, #join_with_operator, #lang, #language, #location, #locations, #not_from, #not_from_countries, #not_from_country, #not_from_location, #not_from_locations, #not_from_place, #not_from_places, #not_lang, #not_language, #not_retweets_of, #not_to, #not_with_context, #not_with_entities, #not_with_entity, #one_of_context, #place, #places, #retweets_of, #retweets_of_one_of, #to, #to_one_of, #with_context, #with_conversation_id, #with_conversation_ids, #with_entities, #with_entity, #with_link, #with_links, #with_one_of_context, #with_one_of_conversation_id, #with_one_of_conversation_ids, #with_one_of_entities, #with_one_of_entity, #with_one_of_links, #with_one_of_urls, #with_url, #with_urls, #without, #without_context, #without_conversation_id, #without_conversation_ids, #without_entities, #without_entity, #without_link, #without_links, #without_url
Constructor Details
#initialize(term) ⇒ Search
Returns a new instance of Search.
11 12 13 |
# File 'lib/tweetkit/client/search/search.rb', line 11 def initialize(term) @current_query = term end |
Instance Attribute Details
#current_query ⇒ Object
Returns the value of attribute current_query.
9 10 11 |
# File 'lib/tweetkit/client/search/search.rb', line 9 def current_query @current_query end |
Instance Method Details
#evaluate(&block) ⇒ Object
19 20 21 |
# File 'lib/tweetkit/client/search/search.rb', line 19 def evaluate(&block) instance_eval(&block) end |
#opts ⇒ Object
15 16 17 |
# File 'lib/tweetkit/client/search/search.rb', line 15 def opts @opts ||= {} end |