Last active
April 13, 2020 17:16
-
-
Save dgorodnichy/0d50644296820e0310f89d04af95abab to your computer and use it in GitHub Desktop.
posts_adapter_medium.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module PostsSource | |
class Remote | |
def initialize(username) | |
@client = MediumAPI.new(username) | |
end | |
def user_posts | |
@client.posts | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment