Fix POD, condense Asset attributes. A test for tableName in the constructor.
This commit is contained in:
parent
e1be2f9319
commit
456eb6f39a
3 changed files with 8 additions and 14 deletions
|
|
@ -55,16 +55,8 @@ sub property_meta {
|
|||
return 'WebGUI::Definition::Meta::Property::Asset';
|
||||
}
|
||||
|
||||
has 'tableName' => (
|
||||
is => 'rw',
|
||||
);
|
||||
|
||||
has 'icon' => (
|
||||
is => 'rw',
|
||||
);
|
||||
|
||||
has 'assetName' => (
|
||||
is => 'rw',
|
||||
has [ qw{tableName icon assetName} ] => (
|
||||
is => 'rw',
|
||||
);
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@ These methods are available from this class:
|
|||
|
||||
=head2 get_all_properties ( )
|
||||
|
||||
Returns an array of all Properties, in all classes, in the
|
||||
order they were created in the Definition.
|
||||
Returns an array of all Properties, in all classes, in the order they were
|
||||
created in the Definition.
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -72,8 +72,8 @@ sub get_all_properties {
|
|||
|
||||
=head2 get_attributes ( )
|
||||
|
||||
Returns an array of all attributes, but only for this class. This
|
||||
is the API-safe way of doing $self->_attribute_map;
|
||||
Returns an array of all attributes, but only for this class. This is the
|
||||
API-safe way of doing $self->_attribute_map;
|
||||
|
||||
=cut
|
||||
|
||||
|
|
|
|||
|
|
@ -149,6 +149,8 @@ my $called_getProperties;
|
|||
'get_tables returns a list of all tables used by this class'
|
||||
);
|
||||
|
||||
my $object2 = __PACKAGE__->new(tableName => 'notAsset');
|
||||
::is $object2->tableName, 'asset', 'tableName ignored in constructor';
|
||||
}
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue