Class: Streak::Search

Inherits:
StreakObject show all
Defined in:
lib/streak/search.rb

Class Method Summary collapse

Methods inherited from StreakObject

attributes, construct_from, convert_to_streak_object, #initialize, #method_missing, relations

Constructor Details

This class inherits a constructor from Streak::StreakObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Streak::StreakObject

Class Method Details

.query(s_query) ⇒ Object



3
4
5
6
# File 'lib/streak/search.rb', line 3

def self.query(s_query)
  res = Streak.request(:get, "/search", {query: s_query})
  convert_to_streak_object(res, Search)
end