ó
š9^c           @   s   d  e  f d     YZ d S(   t   Subjectc           B   sn   e  Z d  Z d d  Z e d    Z e j d    Z e d    Z e j d    Z d   Z	 d   Z
 RS(	   s   A subject for an email message.c         C   s7   d |  _ d |  _ | |  _ | d k	 r3 | |  _ n  d S(   s  Create a Subjuct.

        :param subject: The subject for an email
        :type subject: string
        :param name: p is the Personalization object or Personalization object
                     index
        :type name: Personalization, integer, optional
        N(   t   Nonet   _subjectt   _personalizationt   subjectt   personalization(   t   selfR   t   p(    (    s?   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/subject.pyt   __init__   s
    				c         C   s   |  j  S(   s9   The subject of an email.

        :rtype: string
        (   R   (   R   (    (    s?   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/subject.pyR      s    c         C   s   | |  _  d S(   sm   The subject of an email.

        :param value: The subject of an email.
        :type value: string
        N(   R   (   R   t   value(    (    s?   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/subject.pyR      s    c         C   s   |  j  S(   sm   The Personalization object or Personalization object index

        :rtype: Personalization, integer
        (   R   (   R   (    (    s?   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/subject.pyR   %   s    c         C   s   | |  _  d S(   sŲ   The Personalization object or Personalization object index

        :param value: The Personalization object or Personalization object
                      index
        :type value: Personalization, integer
        N(   R   (   R   R	   (    (    s?   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/subject.pyR   -   s    c         C   s   t  |  j    S(   sP   Get a JSON representation of this Mail request.

        :rtype: string
        (   t   strt   get(   R   (    (    s?   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/subject.pyt   __str__7   s    c         C   s   |  j  S(   s   
        Get a JSON-ready representation of this Subject.

        :returns: This Subject, ready for use in a request body.
        :rtype: string
        (   R   (   R   (    (    s?   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/subject.pyR   >   s    N(   t   __name__t
   __module__t   __doc__R   R   t   propertyR   t   setterR   R   R   (    (    (    s?   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/subject.pyR       s   	
	N(   t   objectR    (    (    (    s?   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/subject.pyt   <module>   t    