Skip to content

Consider making adapter classes for each service to convert JSON into vertical model objects #71

@aborem

Description

@aborem

I.e.,

# adapters/tumblr_adapter.py

class TumblrAdapter:
    def adapt_social_posting_vertical(...):
        ...

# tumblr.py

class TumblrTransferService:
    adapter = TumblrAdapter()

    ...

    def fetch_social_posting_vertical(...):
        ...
        return self.adapter.adapt_social_posting_vertical(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bubbleLow priority that we may revisit later

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions