Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 274 Bytes
class ApiBuddyDemo
def foo_sync
response = self.api_request
self.api_callback(response)
end
def foo_async
ApiBuddy.go(self, :api_request, :api_callback)
end
def api_request
response = "23"
end
def api_callback(response)
end
end