Skip to content

Instantly share code, notes, and snippets.

@dgorodnichy
Last active April 13, 2020 17:16
Show Gist options
  • Save dgorodnichy/0d50644296820e0310f89d04af95abab to your computer and use it in GitHub Desktop.
Save dgorodnichy/0d50644296820e0310f89d04af95abab to your computer and use it in GitHub Desktop.
posts_adapter_medium.rb
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