public function ips($hours = 24, $class = null)
    {
        $zoneIps = $this->get('zoneIps', $this->data(compact('hours', 'class')), $hours.$class);

        $ips = array_get($zoneIps, 'response.ips');

        $all = new Collection();

        foreach ($ips as $ip) {
            $name = $ip['ip'];
            $zoneIp = new ZoneIP($this->client, $name, $this, ['zoneIp' => $ip]);
            $all->put($name, $zoneIp);
        }

        return $all;
    }
public function ips($hours = 24, $class = null)
    {
        $zoneIps = $this->get('zoneIps', $this->data(compact('hours', 'class')), $hours.$class);

        $ips = array_get($zoneIps, 'response.ips');

        $all = new Collection();

        foreach ($ips as $ip) {
            $name = $ip['ip'];
            $zoneIp = new ZoneIP($this->client, $name, $this, ['zoneIp' => $ip]);
            $all->put($name, $zoneIp);
        }

        return $all;
    }
public function ips ( $ hours = 24 , $ class = null ) { $ zoneIps = $ this -> get ( 'zoneIps' , $ this -> data ( compact ( 'hours' , 'class' ) ) , $ hours . $ class ) ; $ ips = array_get ( $ zoneIps , 'response.ips' ) ; $ all = new Collection ( ) ; foreach ( $ ips as $ ip ) { $ name = $ ip [ 'ip' ] ; $ zoneIp = new ZoneIP ( $ this -> client , $ name , $ this , [ 'zoneIp' => $ ip ] ) ; $ all -> put ( $ name , $ zoneIp ) ; } return $ all ; }
Get all ips as a collection of models.

@param int         $hours
@param string|null $class

@return \Illuminate\Support\Collection
Get all ips as a collection of models .