<filename>ros_cc_python/src/ros_cc_python/ros_cc_class.py
#!/usr/bin/env python

"""
ROS Code Coverage Class (Python).
This module demonstrates code coverage and code quality for ROS Python applications.
"""

class RosCCClass(object):

    """Example of a Python Class for code coverage purposes."""

    def __init__(self, identifier, name='default'):
        """
        ROS Code Coverage __init__ method.

        Args:
            identifier (string): identification parameter
            name (string): name parameter
        """

        self.identifier = identifier
        self.name = name

    def set_name(self, name):
        """
        Method for changing the name parameter

        Args:
            name (string): name parameter
        """
        self.name = name

    def get_name(self):
        """
        Method for getting the name parameter

        Returns:
            name (string): name parameter
        """
        return self.name

<filename>ros_cc_python/src/ros_cc_python/ros_cc_class.py
#!/usr/bin/env python

"""
ROS Code Coverage Class (Python).
This module demonstrates code coverage and code quality for ROS Python applications.
"""

class RosCCClass(object):

    """Example of a Python Class for code coverage purposes."""

    def __init__(self, identifier, name='default'):
        """
        ROS Code Coverage __init__ method.

        Args:
            identifier (string): identification parameter
            name (string): name parameter
        """

        self.identifier = identifier
        self.name = name

    def set_name(self, name):
        """
        Method for changing the name parameter

        Args:
            name (string): name parameter
        """
        self.name = name

    def get_name(self):
        """
        Method for getting the name parameter

        Returns:
            name (string): name parameter
        """
        return self.name

#!/usr/bin/env python ROS Code Coverage Class (Python). This module demonstrates code coverage and code quality for ROS Python applications. Example of a Python Class for code coverage purposes. ROS Code Coverage __init__ method.          Args:             identifier (string): identification parameter             name (string): name parameter Method for changing the name parameter          Args:             name (string): name parameter Method for getting the name parameter          Returns:             name (string): name parameter