Class: Cameraplus::API::Search

Inherits:
Object
  • Object
show all
Defined in:
lib/cameraplus/api/search.rb

Class Method Summary collapse

Class Method Details

.find(filters) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/cameraplus/api/search.rb', line 5

def self.find(filters)
  if has_valid_filters filters
    Request.call "/search", filters
  else
    raise InvalidArgumentError
  end
end