Joao P Dubas avatar Joao P Dubas committed 78538be

Add `base_url` property to `Response`.

This property aids the creation of canonical url for product.

Comments (0)

Files changed (3)

 
 setup(
     name='ml-service-client',
-    version='0.1.3.dev',
+    version='0.1.4.dev',
     author='Magazine Luiza',
     author_email='mr_sobrinho@dev.magazineluiza.com.br',
     description='Magazine Luiza Service Client',

src/main/python/magazineluiza/__init__.py

 # -*- coding: utf-8 -*-
-VERSION = (0, 1, 3, 'dev')
+VERSION = (0, 1, 4, 'dev')
 __version__ = '.'.join(map(str, VERSION))
 __author__ = 'Magazine Luiza'
 __email__ = 'mr_sobrinho@dev.magazineluiza.com.br'

src/main/python/magazineluiza/api/managers/base.py

     pages = None
     page_size = None
     time_spent = None
+    base_url = None
     base_img_url = None
     data = None
 
         self.time_spent = dict_obj.get('timeSpent')
         self.version = dict_obj.get('version')
         self.base_img_url = dict_obj.get('baseImgUrl')
+        self.base_url = dict_obj.get('baseUrl')
 
 # http://stackoverflow.com/questions/5396335/python-dynamic-object-generation-confusion
 class ResponseData(ManagedObject):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.