Skip to content

Instantly share code, notes, and snippets.

@dgorodnichy
Last active April 9, 2020 15:48
Show Gist options
  • Save dgorodnichy/84915335c849072f1ff959275cb03808 to your computer and use it in GitHub Desktop.
Save dgorodnichy/84915335c849072f1ff959275cb03808 to your computer and use it in GitHub Desktop.
medium.rb
class Medium
cattr_accessor :source
def initialize(name = nil)
@client = source.new(name)
end
def posts
@client.user_posts
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment