#NEWLINE# def __init__( self , raw_response , locales = None ) : #NEWLINE# #INDENT# if ( locales is None ) : #NEWLINE# #INDENT# locales = [ 'en' ] #NEWLINE# #UNINDENT# self . _locales = locales #NEWLINE# self . continent = geoip2 . records . Continent ( locales , ** raw_response . get ( 'continent' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . country = geoip2 . records . Country ( locales , ** raw_response . get ( 'country' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . registered_country = geoip2 . records . Country ( locales , ** raw_response . get ( 'registered_country' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . represented_country = geoip2 . records . RepresentedCountry ( locales , ** raw_response . get ( 'represented_country' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . maxmind = geoip2 . records . MaxMind ( ** raw_response . get ( 'maxmind' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . traits = geoip2 . records . Traits ( ** raw_response . get ( 'traits' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . raw = raw_response