1 package Arvados::ResourceAccessor;
11 $self->{'api'} = shift;
12 $self->{'resourcesName'} = shift;
13 $self->{'methods'} = $self->{'api'}->{'discoveryDocument'}->{'resources'}->{$self->{'resourcesName'}}->{'methods'};
14 my $method_name, $method;
15 while (($method_name, $method) = each %{$self->{'methods'}}) {
16 $self->{$method_name} = Arvados::ResourceMethod->new($self, $method);