# Copyright (c) 2017 The Regents of the University of Michigan.
# All Rights Reserved. Licensed according to the terms of the Revised
# BSD License. See LICENSE.txt for details.

from ..common import ReadOnlyDataStructure

class WorldcatData (ReadOnlyDataStructure):

    @property
    def title (self):
        return self.get("title")

    def __iter__ (self):
        return iter(self.get("libraries", ()))

# Copyright (c) 2017 The Regents of the University of Michigan.
# All Rights Reserved. Licensed according to the terms of the Revised
# BSD License. See LICENSE.txt for details.

from ..common import ReadOnlyDataStructure

class WorldcatData (ReadOnlyDataStructure):

    auto_properties = ("title",)

    def __iter__ (self):
        return iter(self.get("libraries", ()))

Use new property format for WorldcatData
Use new property format for WorldcatData
