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
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 |
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
class Retriable | |
class << self | |
def config(&block) | |
self.new(&block) | |
end | |
end | |
def initialize(&block) | |
max_attempts 5 |
OlderNewer