lib/github_api/gists.rb in github_api-0.8.11 vs lib/github_api/gists.rb in github_api-0.9.0
- old
+ new
@@ -12,17 +12,12 @@
public
files
content
].freeze
- # Creates new Gists API
- def initialize(options = {})
- super(options)
- end
-
# Access to Gists::Comments API
- def comments
- @comments ||= ApiFactory.new 'Gists::Comments'
+ def comments(options={}, &block)
+ @comments ||= ApiFactory.new('Gists::Comments', current_options.merge(options), &block)
end
# List a user's gists.
#
# = Examples