lib/github_api/orgs.rb in github_api-0.2.1 vs lib/github_api/orgs.rb in github_api-0.2.2

- old
+ new

@@ -15,11 +15,11 @@ billing_email company email location name - ] + ].freeze # Creates new Orgs API def initialize(options = {}) super(options) end @@ -45,10 +45,12 @@ get("/user/orgs", params) end return response unless block_given? response.each { |el| yield el } end + alias :list_orgs :orgs + alias :list_organizations :orgs # Get properties for a single organization # # = Examples # @github = Github.new @@ -56,10 +58,12 @@ # def org(org_name, params={}) _validate_presence_of org_name get("/orgs/#{org_name}") end + alias :get_org :org + alias :organisation :org # Edit organization # # = Parameters # <tt>:billing_email</tt> - Optional string - Billing email address. This address is not publicized. @@ -83,8 +87,9 @@ _normalize_params_keys(params) _filter_params_keys(VALID_ORG_PARAM_NAMES, params) patch("/orgs/#{org_name}", params) end + alias :edit_organization :edit_org end # Orgs end # Github