<html><head><title>WebService::Hexonet::Connector::Record</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >
</head>
<body class='pod'>
<!--
  generated by Pod::Simple::HTML v3.35,
  using Pod::Simple::PullParser v3.35,
  under Perl v5.030001 at Thu Jul 16 08:59:57 2020 GMT.

 If you want to change this HTML document, you probably shouldn't do that
   by changing it directly.  Instead, see about changing the calling options
   to Pod::Simple::HTML, and/or subclassing Pod::Simple::HTML,
   then reconverting this document from the Pod source.
   When in doubt, email the author of Pod::Simple::HTML for advice.
   See 'perldoc Pod::Simple::HTML' for more info.

-->

<!-- start doc -->
<a name='___top' class='dummyTopAnchor' ></a>

<h1><a class='u'
name="NAME"
>NAME</a></h1>

<p>WebService::Hexonet::Connector::Record - Library to cover API response data in row-based way.</p>

<h1><a class='u'
name="SYNOPSIS"
>SYNOPSIS</a></h1>

<p>This module is internally used by the <a href="http://search.cpan.org/perldoc?WebService%3A%3AHexonet%3A%3AConnector%3A%3AResponse" class="podlinkpod"
>WebService::Hexonet::Connector::Response</a> module.
To be used in the way:</p>

<pre>    # specify the row data in hash notation
    $data = { DOMAIN =&#62; &#39;mydomain.com&#39;,  NAMESERVER0 =&#62; &#39;ns1.mydomain.com&#39; };

    # create a new instance by
    $rec = WebService::Hexonet::Connector::Record-&#62;new($data);</pre>

<h1><a class='u'
name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p>HEXONET Backend API always responds in plain-text format that needs to get parsed into a useful data structure. For simplifying data access we created this library and also the Column library to provide an additional and more customerfriendly way to access data. Previously getHash and getListHash were the only possibilities to access data in Response library.</p>

<h2><a class='u'
name="Methods"
>Methods</a></h2>

<dl>
<dt><a name="new(_$data_)"
><code>new( $data )</code></a></dt>

<dd>
<p>Returns a new <a href="http://search.cpan.org/perldoc?WebService%3A%3AHexonet%3A%3AConnector%3A%3ARecord" class="podlinkpod"
>WebService::Hexonet::Connector::Record</a> object. Specifiy the row data in hash notation as $data.</p>

<dt><a name="getData"
><code>getData</code></a></dt>

<dd>
<p>Returns the whole row data as hash.</p>

<dt><a name="getDataByKey(_$key_)"
><code>getDataByKey( $key )</code></a></dt>

<dd>
<p>Returns the row data for the specified column name as $key as scalar. Returns undef if not found.</p>

<dt><a name="hasData(_$key_)"
><code>hasData( $key )</code></a></dt>

<dd>
<p>Checks if the column specified by $key exists in the row data. Returns boolean 0 or 1.</p>
</dd>
</dl>

<h1><a class='u'
name="LICENSE_AND_COPYRIGHT"
>LICENSE AND COPYRIGHT</a></h1>

<p>This program is licensed under the <a href="https://raw.githubusercontent.com/hexonet/perl-sdk/master/LICENSE" class="podlinkurl"
>MIT License</a>.</p>

<h1><a class='u'
name="AUTHOR"
>AUTHOR</a></h1>

<p><a href="https://www.hexonet.net" class="podlinkurl"
>HEXONET GmbH</a></p>

<!-- end doc -->

</body></html>