| 1 | package OPTIMADE::PropertyDefinitions::Property::Nested; | ||||||||||
| 2 | |||||||||||
| 3 | # ABSTRACT: OPTIMADE Nested property | ||||||||||
| 4 | 2 | our $VERSION = '0.1.0'; # VERSION | |||||||||
| 5 | |||||||||||
| 6 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 2 | ▶ | use parent OPTIMADE::PropertyDefinitions::Property::; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | sub raw() | ||||||||||
| 12 | 0 | ▶ | { | ||||||||
|
Subroutine
raw: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 13 | 0 | my( $self ) = @_; | |||||||||
| 14 | 0 | ▶ | if( $self->parent->optimade_type eq 'list' ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 0 | return $self->parent->raw->{items}{properties}{$self->name}; | |||||||||
| 16 | } else { | ||||||||||
| 17 | 0 | return $self->parent->raw->{properties}{$self->name}; | |||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 2 | 1; | |||||||||