public function record($id)
    {
        $recs = $this->get('recLoadAll');

        $records = array_get($recs, 'response.recs.objs');

        foreach ($records as $record) {
            if ((int) $record['rec_id'] === (int) $id) {
                return new Record($this->client, (int) $id, $this, ['recLoad' => $record]);
            }
        }
    }
public function record($id)
    {
        $recs = $this->get('recLoadAll');

        $records = array_get($recs, 'response.recs.objs');

        foreach ($records as $record) {
            if ((int) $record['rec_id'] === (int) $id) {
                return new Record($this->client, (int) $id, $this, ['recLoad' => $record]);
            }
        }
    }
public function record ( $ id ) { $ recs = $ this -> get ( 'recLoadAll' ) ; $ records = array_get ( $ recs , 'response.recs.objs' ) ; foreach ( $ records as $ record ) { if ( ( int ) $ record [ 'rec_id' ] === ( int ) $ id ) { return new Record ( $ this -> client , ( int ) $ id , $ this , [ 'recLoad' => $ record ] ) ; } } }
Get a dns record as a model.

@param int $id

@return \GrahamCampbell\CloudFlareAPI\Models\Record
Get a dns record as a model .