Fatal error: Call to undefined method weather::get()
<p>I was trying to make weather based PHP script to show weather related data.But,I'm facing this error message</p>

<p><b>Fatal error: Call to undefined method weather::get()</b></p>

<p>Would you please let me know how can i fix this or what was my problem??You can check out my code here:</p>

<pre><code>&lt;?php
include 'weather.php';
$t_weather = new weather();
$info = $t_weather-&gt;get('New York');
echo "Current temperature in {$info[0]['location']} is: {$info[0]['current_condition']['temperature']['f']} °F";
 ?&gt;
</code></pre>

<p>This is weather.php:</p>

<pre><code>&lt;?php
class weather {
 // API data
 private $API_NAME   = 'weather';
 private $API_KEY    = '***********';
 }
 ?&gt;
</code></pre>

<p>Thanks in advance.</p>
