lib/github_api/orgs.rb in github_api-0.8.11 vs lib/github_api/orgs.rb in github_api-0.9.0
- old
+ new
@@ -14,22 +14,17 @@
email
location
name
].freeze
- # Creates new Orgs API
- def initialize(options = {})
- super(options)
- end
-
# Access to Orgs::Members API
- def members
- @members ||= ApiFactory.new 'Orgs::Members'
+ def members(options={}, &block)
+ @members ||= ApiFactory.new('Orgs::Members', current_options.merge(options), &block)
end
# Access to Orgs::Teams API
- def teams
- @teams ||= ApiFactory.new 'Orgs::Teams'
+ def teams(options={}, &block)
+ @teams ||= ApiFactory.new('Orgs::Teams', current_options.merge(options), &block)
end
# List all public organizations for a user.
#
# = Examples