Module: Besepa::ApiCalls::Search::ClassMethods
- Defined in:
- lib/besepa/api_calls/search.rb
Instance Method Summary collapse
Instance Method Details
#search(filters = {}) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/besepa/api_calls/search.rb', line 5 def search(filters = {}) path = "/#{api_path}/search" params = filters.select{|x| [:page, :field, :value].include?(x)} response = get(path, params) Besepa::Collection.new(response, self) end |