class Fastly

def search_services(opts)

service = fastly.search_services(:name => name, :version => number)

or

services = fastly.search_services(:name => name)

In general you'll want to do

Search all the services that the current customer has.
def search_services(opts)
  hash = client.get("#{Service.post_path}/search", opts)
  hash.nil? ? nil : Service.new(hash, self)
end