Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the returned data as an object #3

Merged
merged 1 commit into from
Mar 5, 2019
Merged

Conversation

giovino
Copy link
Owner

@giovino giovino commented Mar 5, 2019

This is a major refactor that changes most data structures returned.

Changes:
1. dnsdb.search() returns an object
2. dnsdb.quota() returns an object
3. The object has the following attributes:
* records
* status_code
* error
* quota
4. obj.quota is a normalized data structure compared to the raw api
5. obj.error data structure has changed
6. obj.status_code is new
7. obj.records is the same list of dicts as before

This is a major refactor that changes most data structures returned.

Changes:
    1. dnsdb.search() returns an object
    2. dnsdb.quota() returns an object
    3. The object has the following attributes:
        * records
        * status_code
        * error
        * quota
    4. obj.quota is a normalized data structure compared to the raw api
    5. obj.error data structure has changed
    6. obj.status_code is new
    7. obj.records is the same list of dicts as before
@giovino giovino merged commit a6206eb into master Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant