Skip to content

Instantly share code, notes, and snippets.

View hayesdavis's full-sized avatar

Hayes Davis hayesdavis

View GitHub Profile
require 'grafl'
# Get the root node (assumes you have an access token)
root = Grafl.root(:access_token=>'foo')
# Get the current user
user = root/:me
puts user.name
# Get the user's news feed
class Retriable
class << self
def config(&block)
self.new(&block)
end
end
def initialize(&block)
max_attempts 5