(self, name, default_value=None, refresh=False)
return first_object.get(name, default_value)
Returns a top level attribute from a resource object.

        Args:
            name: String with the attribute name.
            default_value: The default value if the attribute does not exit,
                defaults to None.
            refresh: If set to True then the data will be refreshed.

        Returns:
            The dict value of the key "name".
Returns a top level attribute from a resource object.
Returns a top level attribute from a resource object .
def _get_top_level_attribute(self, name, default_value=None, refresh=False):
        """Returns a top level attribute from a resource object.

        Args:
            name: String with the attribute name.
            default_value: The default value if the attribute does not exit,
                defaults to None.
            refresh: If set to True then the data will be refreshed.

        Returns:
            The dict value of the key "name".
        """
        resource = self.lazyload_data(refresh_cache=refresh)
        resource_objects = resource.get('objects')
        if not resource_objects:
            return default_value

        if not len(resource_objects) == 1:
            return default_value

        first_object = resource_objects[0]
        return first_object.get(name, default_value)
def _get_top_level_attribute ( self , name , default_value = None , refresh = False ) : resource = self . lazyload_data ( refresh_cache = refresh ) resource_objects = resource . get ( 'objects' ) if not resource_objects : return default_value if not len ( resource_objects ) == 1 : return default_value first_object = resource_objects [ 0 ] return first_object . get ( name , default_value )