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

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

        foreach ($ips as $ip) {
            if ($ip['ip'] == $address) {
                return new ZoneIP($this->client, $address, $this, ['zoneIp' => $ip]);
            }
        }
    }
public function ip($address, $hours = 24, $class = null)
    {
        $zoneIps = $this->get('zoneIps', $this->data(compact('hours', 'class')), $hours.$class);

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

        foreach ($ips as $ip) {
            if ($ip['ip'] == $address) {
                return new ZoneIP($this->client, $address, $this, ['zoneIp' => $ip]);
            }
        }
    }
public function ip ( $ address , $ hours = 24 , $ class = null ) { $ zoneIps = $ this -> get ( 'zoneIps' , $ this -> data ( compact ( 'hours' , 'class' ) ) , $ hours . $ class ) ; $ ips = array_get ( $ zoneIps , 'response.ips' ) ; foreach ( $ ips as $ ip ) { if ( $ ip [ 'ip' ] == $ address ) { return new ZoneIP ( $ this -> client , $ address , $ this , [ 'zoneIp' => $ ip ] ) ; } } }
Get an ip as a model.

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

@return \GrahamCampbell\CloudFlareAPI\Models\ZoneIp
Get an ip as a model .