Method: Google::Auth::ScopeUtil.normalize
- Defined in:
- lib/googleauth/scope_util.rb
.normalize(scope) ⇒ Array<String>
Normalize the input, which may be an array of scopes or a whitespace- delimited scope string. The output is always an array, even if a single scope is input.
49 50 51 52 |
# File 'lib/googleauth/scope_util.rb', line 49 def self.normalize scope list = as_array scope list.map { |item| ALIASES[item] || item } end |