
    ,Of                     >    d dl mZmZ d dlmZmZmZ  G d de      Zy)    )AnyDict)	AttributeNonCompletableGithubObjectNotSetc                       e Zd ZdZddZdefdZedefd       Zede	fd       Z
ede	fd       Zd	eeef   ddfd
Zy)Referrerz
    This class represents a popylar Referrer for a GitHub repository.

    The reference can be found here
    https://docs.github.com/en/rest/reference/repos#traffic

    returnNc                 F    t         | _        t         | _        t         | _        y N)r   	_referrer_count_uniquesselfs    /lib/python3.12/site-packages/github/Referrer.py_initAttributeszReferrer._initAttributes6   s    )/&,(.    c                     | j                  | j                  j                  | j                  j                  | j                  j                  d      S )N)referrercountuniques)get__repr__r   valuer   r   r   s    r   __repr__zReferrer.__repr__;   sA     NN00**==..
 	
r   c                 .    | j                   j                  S r   )r   r   r   s    r   r   zReferrer.referrerD   s    ~~###r   c                 .    | j                   j                  S r   )r   r   r   s    r   r   zReferrer.countH   s    {{   r   c                 .    | j                   j                  S r   )r   r   r   s    r   r   zReferrer.uniquesL   s    }}"""r   
attributesc                     d|v r| j                  |d         | _        d|v r| j                  |d         | _        d|v r| j                  |d         | _        y y )Nr   r   r   )_makeStringAttributer   _makeIntAttributer   r   )r   r   s     r   _useAttributeszReferrer._useAttributesP   sd    #!66z*7MNDNj 00G1DEDK
" 22:i3HIDM #r   )r
   N)__name__
__module____qualname____doc__r   strr   propertyr   intr   r   r   r   r#    r   r   r	   r	   -   s    /

# 
 $# $ $ !s ! ! # # #Jc3h JD Jr   r	   N)typingr   r   github.GithubObjectr   r   r   r	   r+   r   r   <module>r.      s    P  M M)J) )Jr   