Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change internal API(_get_index_instance)

  • Loading branch information...
commit 1c2b3a7b3087e47aa8d83503090b7b0509b52d5b 1 parent 26cb6e2
@hideo55 authored
Showing with 1 addition and 7 deletions.
  1. +1 −7 lib/ArangoDB.pm
View
8 lib/ArangoDB.pm
@@ -6,7 +6,6 @@ use 5.008001;
use Carp qw(croak);
use ArangoDB::Connection;
use ArangoDB::Collection;
-use ArangoDB::Document;
use ArangoDB::Statement;
use ArangoDB::Constants qw(:api);
use overload '&{}' => sub {
@@ -103,7 +102,7 @@ sub index {
my $api = API_INDEX . '/' . $index_id;
my $index = eval {
my $res = $self->{connection}->http_get($api);
- $self->_get_index_instance($res);
+ $self->ArangoDB::Collection::_get_index_instance($res);
};
if ($@) {
$self->_server_error_handler( $@, 'Failed to get the index($index_id) on the collection(%s)' );
@@ -120,10 +119,6 @@ sub _server_error_handler {
croak $message;
}
-BEGIN {
- *_get_index_instance = \&ArangoDB::Collection::_get_index_instance;
-}
-
1;
__END__
@@ -306,7 +301,6 @@ L<https://github.com/hideo55/p5-ArangoDB>
Hideaki Ohno E<lt>hide.o.j55 {at} gmail.comE<gt>
-
=head1 LICENSE
This library is free software; you can redistribute it and/or modify
Please sign in to comment.
Something went wrong with that request. Please try again.