Appium Ruby Script?

I use Appium ruby script

xpaths("//*[@class=‘android.widget.TextView’]")[0].click

The above script was using the Appium library. But the Error is occured
(: NoMethodError: undefined method `click’ for nil:NilClass)

II wonder how you can use the click method.

And

I wonder xpath operator (and, or) how to use