samvera / hydra-works

A ruby gem implementation of the PCDM Works domain model based on the Samvera software stack
Other
24 stars 14 forks source link

rework API for parent/child methods #149

Closed elrayle closed 9 years ago

elrayle commented 9 years ago

Reworks API to consistently use child and parent prefixes for object and collection getter/setter methods.

Collection methods names:

GenericWork methods names:

GenericFile methods names:

elrayle commented 9 years ago

The child methods may come as part of the work being done on https://github.com/projecthydra-labs/activefedora-aggregation/issues/45 which will add defining of filters_association for aggregations.

elrayle commented 9 years ago

RELATED: https://github.com/projecthydra-labs/hydra-pcdm/issues/134

See collection_behaviors.rb and object_behaviors.rb in pcdm for the pattern on how to update the methods.

elrayle commented 9 years ago

Fixed by https://github.com/projecthydra-labs/hydra-works/pull/161