def where(options, raise_error = false)
      send("get_by_#{options.keys.first}", options.values.first)
    rescue ResourceNotFoundError => error
      raise error if raise_error
      []
    end
def where(options, raise_error = false)
      send("get_by_#{options.keys.first}", options.values.first)
    rescue ResourceNotFoundError => error
      raise error if raise_error
      []
    end
Public: Get all records from Pipedrive by **one** of the record's fields.

 options - A Hash with one key-value pair. Key is a field name and values is a field value.

 Examples

   where(name: "John Doe")
   where(github_username: "pipedriver")
   where(id: 123)

 Returns array of Hashes.