GenderAttribute protocol

The protocol defines methods for updating the gender of a user profile.

Instance methods

withValue(_:)

Updates the attribute value with the specified value from the GenderType enum.

withValueReset()

Resets the attribute value.

Method descriptions

withValue(_:)

func withValue(_ value: GenderType) -> UserProfileUpdate

Updates the attribute value with the specified value from the GenderType enum.

Parameters:

value

The value from the GenderType enum.

Returns:

The UserProfileUpdate class instance.

withValueReset()

func withValueReset() -> UserProfileUpdate

Resets the attribute value.

Returns:

The UserProfileUpdate class instance.