Sample to call function from ruby script