o
    wÔ+fâ  ã                   @   s   G d d„ de ƒZdS )c                   @   sV   e Zd ZdZddd„Zedd„ ƒZejdd„ ƒZedd	„ ƒZejd
d	„ ƒZdd„ Z	dS )ÚSectionz5A block section of code to be used as a substitution.Nc                 C   s0   d| _ d| _|dur|| _|dur|| _dS dS )zÂCreate a section with the given key and value.

        :param key: section of code key
        :type key: string
        :param value: section of code value
        :type value: string
        N)Ú_keyÚ_valueÚkeyÚvalue)Úselfr   r   © r   úP/var/www/html/venv/lib/python3.10/site-packages/sendgrid/helpers/mail/section.pyÚ__init__   s   
ÿzSection.__init__c                 C   ó   | j S )z=A section of code's key.

        :rtype key: string
        ©r   ©r   r   r   r   r      ó   zSection.keyc                 C   ó
   || _ dS )zdA section of code's key.

        :param key: section of code key
        :type key: string
        Nr   ©r   r   r   r   r   r      ó   
c                 C   r
   )z;A section of code's value.

        :rtype: string
        ©r   r   r   r   r   r   %   r   zSection.valuec                 C   r   )zqA section of code's value.

        :param value: A section of code's value.
        :type value: string
        Nr   r   r   r   r   r   -   r   c                 C   s(   i }| j dur| jdur| j|| j < |S )z™
        Get a JSON-ready representation of this Section.

        :returns: This Section, ready for use in a request body.
        :rtype: dict
        N)r   r   )r   Úsectionr   r   r   Úget6   s   zSection.get)NN)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   Úpropertyr   Úsetterr   r   r   r   r   r   r      s    




r   N)Úobjectr   r   r   r   r   Ú<module>   s    