<html><head><title>WebService::Hexonet::Connector::Column</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::Column - Library to cover API response data in column-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 column name
$key = "DOMAIN";
# specify the column data as array
@data = ('mydomain.com', 'mydomain.net');
# create a new instance by
$col = WebService::Hexonet::Connector::Column->new($key, @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 Record 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(_$key,_@data_)"
><code>new( $key, @data )</code></a></dt>
<dd>
<p>Returns a new <a href="http://search.cpan.org/perldoc?WebService%3A%3AHexonet%3A%3AConnector%3A%3AColumn" class="podlinkpod"
>WebService::Hexonet::Connector::Column</a> object. Specify the column name in $key and the column data in @data.</p>
<dt><a name="getKey"
><code>getKey</code></a></dt>
<dd>
<p>Returns the column name as string.</p>
<dt><a name="getData"
><code>getData</code></a></dt>
<dd>
<p>Returns the full column data as array.</p>
<dt><a name="getDataByIndex(_$index_)"
><code>getDataByIndex( $index )</code></a></dt>
<dd>
<p>Returns the column data of the specified index as scalar. Returns undef if not found.</p>
<dt><a name="hasDataIndex(_$index_)"
><code>hasDataIndex( $index )</code></a></dt>
<dd>
<p>Checks if the given index exists in the column 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>