examples/github.rb in lazy_resource-0.4.0 vs examples/github.rb in lazy_resource-0.5.0
- old
+ new
@@ -1,9 +1,17 @@
require 'lazy_resource'
require 'benchmark'
+class SimpleLogger
+ def info(message)
+ puts message
+ end
+end
+
LazyResource.configure do |config|
config.site = "https://api.github.com"
+ config.logger = SimpleLogger.new
+ config.debug = true
end
class User
include LazyResource::Resource
end