def get(*args)
      arguments(args, required: [:org_name])
      params = arguments.params

      if (username = params.delete('username'))
        get_request("/orgs/#{arguments.org_name}/memberships/#{username}", params)
      else
        get_request("/user/memberships/orgs/#{arguments.org_name}", params)
      end
    end
def get(*args)
      arguments(args, required: [:org_name])
      params = arguments.params

      if (username = params.delete('username'))
        get_request("/orgs/#{arguments.org_name}/memberships/#{username}", params)
      else
        get_request("/user/memberships/orgs/#{arguments.org_name}", params)
      end
    end
Get organization membership

 In order to get a user's membership with an organization,
 the authenticated user must be an organization owner.

 @see https://developer.github.com/v3/orgs/members/#get-organization-membership
 @param [String] :org
 @param [String] :username

 @example
   github = Github.new oauth_toke: '...'
   github.orgs.memberships.get 'orgname', username: 'piotr'

 Get your organization membership

 @see https://developer.github.com/v3/orgs/members/#get-your-organization-membership

 @example
   github = Github.new oauth_token
   github.orgs.memberships.get 'orgname'

 @api public